loess_vis | R Documentation |
Loess Visualization
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],
...
)
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 |
show_loess |
whether to draw the complete Loess regression line. |
xlab |
x-axis label. |
ylab |
y-axis label. |
... |
currently not used. |
data("faithful")
loess_vis(formula = eruptions ~ waiting, data = faithful)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.