Learn R Programming

DAMisc (version 1.7.2)

plot.loess: Plot LOESS curve.

Description

Plots the loess curve of the fitted values against a focal x-variable. .

Usage

# S3 method for loess
plot(
  x,
  ...,
  ci = TRUE,
  level = 0.95,
  linear = FALSE,
  addPoints = FALSE,
  col.alpha = 0.5
)

Arguments

x

An object of class loess.

...

Other arguments to be passed down to xyplot.

ci

Logical indicating whether point-wise confidence intervals should be included around the fitted curve.

level

The confidence level of the confidence intervals

linear

Logical indicating whether the OLS line should also be included.

addPoints

Logical indicating whether or not points should be added to the figure idtntifying the postion of individual observations.

col.alpha

Value for alpha channel of the RGB color palette.

Value

A plot.

Details

Plots the fitted loess curve potentially with point-wise confidence bounds.