[R] visualize correlation matrix

Rui Barradas ruipbarradas at sapo.pt
Sun Jun 17 11:32:58 CEST 2012


Hello,

The answer is yes, there is an easy way of getting that graphic without 
the lower.panel and axis tickmarks.


op <- par(xaxt="n", yaxt="n")
pairs(USJudgeRatings[,c(2:3,6,1,7)],
    upper.panel=panel.cor)
par(op)


where panel.cor() is the function in the link.

Hope this helps,

Rui Barradas

Em 17-06-2012 10:06, Christof Kluß escreveu:
> Hi
>
> is there a easy way to get something like
> http://addictedtor.free.fr/graphiques/graphcode.php?graph=137
>
> pairs(USJudgeRatings[,c(2:3,6,1,7)],
>    lower.panel=panel.smooth, upper.panel=panel.cor)
>
> but without the "lower.panel" (and without numbers and ticks at the border.)
>
> thx
> Christof
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list