Learn R Programming

simpleboot (version 1.1-8)

plot.loess.simpleboot: Plot method for loess bootstraps.

Description

Plot loess lines with bootstrap standard errors.

Usage

# S3 method for loess.simpleboot
plot(x, add = FALSE, all.lines = FALSE, ...)

Value

Nothing is returned.

Arguments

x

An object of class "loess.simpleboot" as returned by the function loess.boot.

add

Should the loess line be plotted over the current plot?

all.lines

Should we plot each of the individual loess lines from the bootstrap samples?

...

Other arguments passed to plot.

Author

Roger D. Peng

Details

plot constructs (and plots) the original loess fit and +/- 2 bootstrap standard errors at locations specified in the new.xpts in loess.boot (or on an evenly spaced grid).

Examples

Run this code
## See the help page for `loess.boot' for an example.

Run the code above in your browser using DataLab