type_loess | R Documentation |
Type function for plotting a LOESS (LOcal regrESSion) fit.
Arguments are passed to loess
.
type_loess(
span = 0.75,
degree = 2,
family = "gaussian",
control = loess.control(),
se = TRUE,
level = 0.95
)
span |
the parameter |
degree |
the degree of the polynomials to be used, normally 1 or 2. (Degree 0 is also allowed, but see the ‘Note’.) |
family |
if |
control |
control parameters: see |
se |
logical. If |
level |
the confidence level required if |
# "loess" type convenience string
tinyplot(dist ~ speed, data = cars, type = "loess")
# Use `type_loess()` to pass extra arguments for customization
tinyplot(dist ~ speed, data = cars, type = type_loess(span = 0.5, degree = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.