panel.r2: Panel plot of R2 values for pairs

Description Usage Arguments Details Author(s) References Examples

Description

Prints the R2 with text size depending on the size of R2

Usage

1
panel.r2(x, y, digits = 2, cex.cor, ...)

Arguments

x

a numeric vector of x values

y

a numeric vector of y values

digits

a numeric value giving the number of digits to present

cex.cor

scaling fator for the size of text

...

extra options (not used at the moment)

Details

This function is a slight modification of the panel.cor function defined on the pairs help page. It calculated and prints the squared correlation, R2, with text size depending on the proportion of explained variation.

Author(s)

Claus Ekstrom claus@rprimer.dk

References

Ekstrom, CT (2011) The R Primer.

Examples

1
2
pairs(~ Ozone + Temp + Wind + Solar.R, data=airquality,
      lower.panel=panel.smooth, upper.panel=panel.r2)


Search within the MESS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.