Description Usage Arguments Value Note Author(s) See Also Examples
The data, the least squares line, the confidence interval lines, and the
prediction interval lines for a simple
linear regression (lm(y ~ x)
) are displayed. Tick marks are
placed at the location of xbar, the xvalue of the narrowest interval.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  ci.plot(lm.object, ...)
## S3 method for class 'lm'
ci.plot(lm.object,
xlim=range(data[, x.name]),
newdata,
conf.level=.95,
data=model.frame(lm.object),
newfit,
ylim,
pch=19,
lty=c(1,3,4,2),
lwd=2,
main.cex=1,
main=list(paste(100*conf.level,
"% confidence and prediction intervals for ",
substitute(lm.object), sep=""), cex=main.cex), ...
)

lm.object 
Linear model for one 
xlim 

newdata 

conf.level 
Confidence level for intervals, defaults to 
data 

newfit 
Constructed 
ylim 

pch 
Plotting character for observed points. 
lty, lwd 
Line types and line width for fit and intervals. 
main.cex 
Font size for main title. 
main 
Main title for plot 
... 
Additional arguments to be passed to panel function. 
"trellis"
object containing the plot.
The predict.lm
functions in SPlus and R differ.
The SPlus function can produce both confidence and prediction
intervals with a single call. The R function produces only one
of them in a single call. Therefore the default calculation of
newfit
within the function depends on the system.
Richard M. Heiberger <rmh@temple.edu>
1 2 3 
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS
Attaching package: 'TH.data'
The following object is masked from 'package:MASS':
geyser
Loading required package: gridExtra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.