Learn R Programming

sasLM (version 0.5.0)

pB: Plot Confidence and Prediction Bands for Simple Linear Regression

Description

It plots bands of confidence interval and prediction interval for simple linear regression.

Usage

pB(Formula, Data, Resol=300, lx, ly, ...)

Arguments

Formula

a formula

Data

a data.frame

Resol

resolution for the output

lx

x position of legend

ly

y position of legend

...

arguments to be passed to plot

Value

Ignore return values.

Details

It plots. Discard return values. If lx or ly is missing, legend position is calculated automatically.

Examples

Run this code
# NOT RUN {
pB(hp ~ disp, mtcars)
pB(mpg ~ disp, mtcars)
# }

Run the code above in your browser using DataLab