Description Usage Arguments Examples
Build a correlation matrix for correlation plots
1 | cortest(mat)
|
mat |
A matrix of continuous variables |
1 2 3 4 5 6 7 8 9 | Pierre <- c(8,9,15)
Nathalie <- c(17,12,13)
Jacques <- c(11,15,7)
Julie <- c(5,12,19)
matrice <- matrix(c(Pierre, Nathalie, Jacques, Julie), nrow=4, ncol=3, byrow=TRUE)
M<-cor(na.omit(matrice),method="spearman")
p.mat <- cortest(na.omit(matrice))
#corrplot(M, method="shade",type="upper",tl.col="black", tl.srt=45,p.mat = p.mat,
#sig.level = 0.05, insig = "blank",addCoef.col = "black",diag=F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.