View source: R/05_output_visualization.R
heatmapColorDistance | R Documentation |
Plots a heatmap of a symmetrical distance matrix in order to visualize
similarity/dissimilarity in scores. Values are clustered by similarity using
hclust
.
heatmapColorDistance(
clusterList_or_matrixObject,
main = NULL,
col = "default",
margins = c(6, 8),
...
)
clusterList_or_matrixObject |
Either a list of identically sized
dataframes with 4 columns each (3 color channels + Pct) as output by
|
main |
Title for heatmap plot. |
col |
Color scale for heatmap from low to high. Default is
|
margins |
Margins for column and row labels. |
... |
Additional arguments passed on to |
Heatmap representation of distance matrix.
## Not run:
# Takes a few seconds to run
cluster.list <- colordistance::getHistList(dir(system.file("extdata",
"Heliconius/", package="colordistance"), full.names=TRUE), lower=rep(0.8, 3),
upper=rep(1, 3))
CDM <- colordistance::getColorDistanceMatrix(cluster.list, plotting=FALSE)
colordistance::heatmapColorDistance(CDM, main="Heliconius color similarity")
colordistance::heatmapColorDistance(cluster.list,
col=colorRampPalette(c("red", "cyan", "blue"))(n=299))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.