Description Usage Arguments Author(s) Examples
Transforms data frame into matrix with options to be plotted using d3heatmap or heatmap.
1 2 3 4 5 6 7 8 | cor_matrix(df, row_names = is.null(rownames(df)), cluster = TRUE,
beta = 1, num_rows = 500)
## S3 method for class 'cor_matrix'
plot(x, rowname = TRUE, colname = TRUE,
cluster = attr(x, "cluster"), beta = attr(x, "beta"),
category = c("div", "seq", "qual"), d3map = interactive(),
palette = palettes, scale = c("none", "row", "column"), ...)
|
df |
data frame with matrix to be plotted |
row_names |
column number or name with row names, or vector of row names (default column 1 if no rownames on |
cluster |
cluster rows and columns if |
beta |
attenuation parameter for clustering (default |
num_rows |
number of rows to plot |
rowname |
include row names in plot if |
colname |
include column names in plot if |
category |
category of |
d3map |
use d3heatmap interactive plot if |
palette |
colorblind friendly palette to plot (see |
... |
other plot parameters (ignored) |
cluster |
cluster rows and columns if |
beta |
attenuation parameter for clustering (default |
Brian S Yandell, brian.yandell@wisc.edu
1 2 3 4 | cor_matrix(mtcars)
plot(cor_matrix(mtcars), scale="column", d3map=FALSE)
plot(cor_matrix(cor(mtcars)), d3map=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.