Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

panel

Alternative panel functions for lattice plots


Description

Functions which can be used instead of the default functions in panel plots.

Usage

panel.hist(x, ...)
panel.cor(x, y, digits=2, prefix="", cex.cor)

Arguments

x, y

variables defining the contents of the panel.

digits

Number of decimals after dot with which correlations will be printed.

prefix

Prefix text for numbers.

cex.cor

Determines height of printed digits, may be missing.

...

graphical parameters can be supplied. see function definition for details.

Author(s)

??

Examples

n <- 1000; a <- rnorm(n,mean=1)
x <- matrix(c(a,a+2*log(runif(n)),a^2+0.2*rnorm(n,mean=1)),nrow = n)
pairs(x,lower.panel=panel.smooth, diag.panel=panel.hist,
upper.panel=panel.cor, labels = c("rnorm","rnorm+log(runif)","rnorm^2"))

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.