Description Usage Arguments Value Examples
Correlations of all pairs o variables.
1 2 | cormatrix_r_p(numericdatanona, columnpos = NULL, filename = NULL,
method = "pearson")
|
numericdatanona |
A numeric data frame |
columnpos |
In case you want to compute correlations of a subset of columns. Default NULL |
filename |
Optional parameter, if provided a string, it will output the plot in a pdf in the working directory. Default NULL |
method |
the methods inherited from rcorr. Default "pearson". Other possibility is "spearman". |
If a file name is indicated, an output pdf plot. Otherwise, prints to the graphic device.
A matrix with lower triangle R pearson correlations, and upper triangle the p-values
1 2 3 | library(MASS)
data(mtcars)
cormatrix_r_p(as.numeric(na.omit(mtcars)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.