panel.cor | R Documentation |
Panel functions to add correlation coefficients to half a pairs plot
panel.cor(x, y, digits = 2, prefix = "", cex.cor, ...)
x , y |
numeric vectors |
digits |
number of significant digits to plot |
prefix |
text to prefix the coefficients |
cex.cor |
character expansion factor |
correlation coefficients for pairs
pairs(USJudgeRatings, lower.panel = panel.smooth, upper.panel = panel.cor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.