Learn R Programming

fastR (version 0.10.3)

xplot: Augmented functions

Description

These functions all behave similarly to the functions with the initial x removed from their names.

Usage

xplot(x, ...)

# S3 method for default xplot(...)

# S3 method for lm xplot(x, which = c(1L:3, 5), caption = captions, panel.default = if (add.smooth) panel.xyplotsmooth else panel.xyplotpoints, sub.caption = NULL, main = "", print.plots = TRUE, ask = 1 < length(which) && dev.interactive(), type = "p", pch = trellis.par.get("plot.symbol")$pch, addline.col = trellis.par.get("add.line")$col, line.col = trellis.par.get("plot.line")$col, symbol.col = trellis.par.get("plot.symbol")$col, lty = trellis.par.get("superpose.line")$lty, ..., id.n = 3, labels.id = names(residuals(x)), cex.id = 0.7, qqline = TRUE, cook.levels = c(0.5, 1), add.smooth = TRUE, label.pos = c("left", "right"), cex.caption = 1)

Arguments

x

A numeric vector or formula.

arguments passed to other functions.

which

A numeric vector indicating which plots to produce

caption

caption for the plot

panel.default

default panel function

sub.caption

secondary caption

main

as in xyplot

print.plots

a logical

ask

a logical

type

as in xyplot

pch

as in xyplot

addline.col

color for added lines

line.col

color for lines

symbol.col

color for symbols

lty

as in xyplot

id.n

a numeric

labels.id

a character vector of labels

cex.id

cex for ids

qqline

a logical

cook.levels

a logical

add.smooth

a logical

label.pos

position for labels, one of "left" or "right"

cex.caption

cex for the caption

panel

a panel function

See Also

plot.

Examples

Run this code
# NOT RUN {
x <- runif(20)
xplot( lm ( 2*x + 5 + rnorm(20) ~ x ) )

# }

Run the code above in your browser using DataLab