Learn R Programming

BCA (version 0.9-2)

scatterplotBCA: Scatterplots with Boxplots

Description

A minor modification of the car package's scatterplot function that makes enhanced scatterplots, with boxplots in the margins, a lowess smooth, smoothed conditional spread, outlier identification, and a regression line; sp is an abbreviation for scatterplot.

Usage

scatterplotBCA(x, ...)

## S3 method for class 'formula':
scatterplotBCA(x, data, subset, xlab, ylab, legend.title, legend.coords,
	labels, ...)

## S3 method for class 'default':
scatterplotBCA(x, y, smooth = TRUE, spread = !by.groups, 
         span = 0.5, loess.threshold = 2, reg.line = lm,
         boxplots = if (by.groups) "" else "xy", xlab = deparse(substitute(x)),
         ylab = deparse(substitute(y)), las = par("las"), lwd = 2,
         lwd.smooth = lwd, lwd.spread = lwd, lty = 1, lty.smooth = lty,
         lty.spread = 2, labels, id.method = "mahal",
         id.n = if(id.method[1] == "identify") length(x) else 0, id.cex = 1,
         id.col = palette()[1], log = "", jitter = list(), xlim = NULL,
         ylim = NULL, cex = par("cex"), cex.axis = par("cex.axis"),
         cex.lab = par("cex.lab"), cex.main = par("cex.main"),
         cex.sub = par("cex.sub"), groups, by.groups = !missing(groups),
         legend.title = deparse(substitute(groups)), legend.coords,
         ellipse = FALSE, levels = c(0.5, 0.95), robust = TRUE, col = if
         (n.groups == 1) palette()[c(2, 1, 3)] else rep(palette(),
         length = n.groups), pch = 1:n.groups, legend.plot = !missing(groups),
         reset.par = TRUE, grid = TRUE, ...)
  
spBCA(...)

Arguments

Value

If points are identified, their labels are returned; otherwise NULL is returned invisibly.

See Also

scatterplot