vl_loess
vl_loess.Rd
Add LoessTransform to a vega-lite spec.
Usage
vl_loess(
spec,
loess = NULL,
on = NULL,
as = NULL,
bandwidth = NULL,
groupby = NULL,
.object = NULL
)
Arguments
- spec
An input vega-lite spec
- loess
The data field of the dependent variable to smooth.
- on
The data field of the independent variable to use a predictor.
- as
The output field names for the smoothed points generated by the loess transform.
Default value: The field names of the input x and y values.
- bandwidth
A bandwidth parameter in the range
[0, 1]
that determines the amount of smoothing.Default value:
0.3
- groupby
The data fields to group by. If not specified, a single group containing all data objects will be used.
- .object
Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than
spec
. Objects can be of type: LoessTransform