loess_vis: Loess Visualization

View source: R/loess_vis.R

loess_visR Documentation

Loess Visualization

Description

Loess Visualization

Usage

loess_vis(
  formula,
  data,
  center = median(data[, all.vars(formula)[2], drop = TRUE]),
  degree = 2,
  span = 0.3,
  draw_loess = FALSE,
  show_loess = TRUE,
  xlab = all.vars(formula)[2],
  ylab = all.vars(formula)[1],
  ...
)

Arguments

formula

regression formula.

data

data frame containing the data.

center

where to display the current Loess estimation.

degree

whether to estimate local linear (1) or quadratic (2) regressions.

span

the parameter which controls the degree of smoothing.

draw_loess

whether to draw the Loess regression line up to center.

show_loess

whether to draw the complete Loess regression line.

xlab

x-axis label.

ylab

y-axis label.

...

currently not used.

Examples

data("faithful")
loess_vis(formula = eruptions ~ waiting, data = faithful)

jbryer/VisualStats documentation built on Feb. 27, 2025, 6:19 p.m.