![]() |
# Fig.11.4.: Plot Robust and Pearson correlation matrix
library(StatDA) data(chorizon) x=chorizon[,c("Ca","Cu","Mg","Na","P","Sr","Zn")] pdf("fig-11-4.pdf",width=7,height=7) par(mfrow=c(1,1),mar=c(4,4,2,0)) R=covMcd(log10(x),cor=T)$cor P=cor(log10(x)) CorCompare(R,P,labels1=dimnames(x)[[2]],labels2=dimnames(x)[[2]], method1="Robust",method2="Pearson",ndigits=2, cex.label=1.2) dev.off() |