powered by
It plots bands of confidence interval and prediction interval for simple linear regression.
pB(Formula, Data, Resol=300, lx, ly, ...)
a formula
a data.frame
resolution for the output
x position of legend
y position of legend
arguments to be passed to plot
plot
Ignore return values.
It plots. Discard return values. If lx or ly is missing, legend position is calculated automatically.
lx
ly
# NOT RUN { pB(hp ~ disp, mtcars) pB(mpg ~ disp, mtcars) # }
Run the code above in your browser using DataLab