Description Usage Arguments Value Examples
View source: R/plot_corrplot.R
Plot correlations of all pairs o variables .
1 2 | plot_corrplot(dataset, columnpos = NULL, filename = NULL,
method = "pearson")
|
dataset |
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 |
the |
different methods possible in cor function. Default "pearson". Other possibilities are "spearman" or "kendall" |
If a file name is indicated, an output pdf plot. Otherwise, prints to the graphic device.
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.