dsm_plot | R Documentation |
This function will plot the off-diagonal elements of a dissmilarity matrix.
dsm_plot(dsm, col_n = 8, color_dir = 1, rev_fac = FALSE, melt = TRUE)
dsm |
a (dis)similarity matrix |
col_n |
number of colors used in palette |
color_dir |
direction of the color ramp. 1 == forward, -1 == reverse |
rev_fac |
logical indicating whether to reverse the factor level order |
melt |
logical indicating whether or not to melt the matrix into a data frame prior to plotting |
Robert S. Chavez
cars_dsm <- 1-cor(mtcars) dsm_plot(cars_dsm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.