- dataset
The dataset to be smoothed as a data.frame.
- dependent.variable
String name of the column in dataset with the dependent variable (defaults to "dependent.variable"); this column should be numeric or factor.
- time
String name of the column in dataset with the time variable (defaults to "year").
- weight
String name of column in the dataset with numeric weights (defaults to "weight").
- bandwidth
Numeric bandwidth of the kernel function.
- sample.density.threshold
Numeric local density of samples below which no estimates will be returned.
- length.out
The number of measure points along the time axis (defaults to 1000).
- alpha
Numeric alpha for calculating error margins (defaults to 0.05).
- xlabel
String label for the x-axis in returned plot (defaults to "year").
- ylabel
String label for the y-axis in returned plot.
- greyscale
If TRUE, plot will be in greyscale; if "compatible", plot will use a colour spectrum which also goes light>dark; otherwise, will use a non-greyscale-compatible colour scale.
- save.path
String path to save plot to (if not given, plot will not be saved).
- measure.times
A numeric vector of specific times at which to make estimates; if given, sample.density.threshold and length.out will be ignored.
- kernel.function
The kernel function, one of gaussian.kernel, gaussian.square.kernel, triangular.kernel, square.kernel, or a custom function.