box.fig: draw boxplot figure at specified position

Usage Arguments Value See Also Examples

Usage

1
box.fig(fit, xpos=1, width=0.2, jitter=width)

Arguments

fit

linear model (lm) fit

xpos

horizontal (x) position of boxplot

width

width of boxplot

jitter

uniform jitter of outliers, if any

Value

list as returned from boxplot(fit,plot=F)

See Also

boxplot, effect.plot.

Examples

1
2
3
4
5
6
## Not run: 
pred <- fitted(fit)
plot(pred,resid(fit),xlim=range(pred)*c(1,1.1))
box.fig(fit,max(pred)*1.1)

## End(Not run)

byandell/pda documentation built on May 13, 2019, 9:27 a.m.