cortest: Correlation graphics

Description Usage Arguments Examples

View source: R/cortest.R

Description

Build a correlation matrix for correlation plots

Usage

1
cortest(mat)

Arguments

mat

A matrix of continuous variables

Examples

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)

abinter/monpackage documentation built on March 11, 2020, 12:17 p.m.