m2mCorrPlot | R Documentation |
Generates a matrix plot of graphical representations of correlations using either 1 or 2 matrices. This is a wrapper for the corrplot function (from the CorrPlot package) that adds the step of combining matrices into one (if necessary) and calculating correlations for plotting. The problem of graphing larger matrices still remains. This is generally good up to 10 columns of measures after which the graphics can get ugly. Generally good to minimize the length of measurement (column) names.
m2mCorrPlot(mat1, mat2, method = "pearson")
mat1 |
matrix one with samples in rows and measurements in columns |
mat2 |
optional: matrix of measures using overlapping samples as matrix 1. Samples not appearing in both matrices will be culled. mat2 will be transposed if necessary. |
method |
Type of correlation to perform "pearson" or "spearman" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.