View source: R/Pairwise_heatmap.R
Pairwise_heatmap | R Documentation |
A function to plot a heatmap from a symmetric matrix.
Pairwise_heatmap(dat, statistic, col = NULL)
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. |
A heatmap plot
#' data(Fst_dat)
Fst <- Fst_dat[[1]]
Fstat_plot <- Pairwise_heatmap(dat = Fst, statistic = 'FST')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.