Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/panel_functions.R
Displays the absolute value of the Pearson correlation coefficient between pairs of variables in a scatterplot matrix. The size of the test depends on the size of the coefficient. The background colour depends on the p-value for the test of the null hypothesis of zero correlation:
orange < 0.001 < gold < 0.01 < yellow < 0.05 < pale yellow < 0.1 < white
For large data sets, all coefficients may be significant.
1 |
x,y |
Two variables for which the correlation is required. |
digits |
Number of digits to display. |
prefix |
Text to display in front of the value. |
cex.cor |
Size of the characters displayed. By default this is proportional to the value of the correlation coefficient. |
... |
further graphical parameters. |
Implement by setting panel arguments when calling the scatterplot function: see examples.
Note that providing values for digits, prefix or cex.cor causes pairs
to produce many warnings that these are not graphical parameters.
None.
Mike Meredith, 2012-08-29, based on code from the pairs help file.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.