Pairwise_heatmap {PopGenHelpR} | R Documentation |
A function to plot a heatmap from a symmetric matrix.
Description
A function to plot a heatmap from a symmetric matrix.
Usage
Pairwise_heatmap(dat, statistic, col = NULL)
Arguments
dat |
Data frame or character string that supplies the input data. If it is a character string, the file should be a csv. If it is a csv, the 1st row should contain the individual/population names. The columns should also be named in this fashion. |
statistic |
Character indicating the statistic represented in the matrix, this will be used to label the plot. |
col |
Character vector indicating the colors to be used in plotting. The vector should contain two colors, the first will be the low value, the second will be the high value. |
Value
A heatmap plot
Examples
#' data(Fst_dat)
Fst <- Fst_dat[[1]]
Fstat_plot <- Pairwise_heatmap(dat = Fst, statistic = 'FST')
[Package PopGenHelpR version 1.3.1 Index]