plot_polar_smooths | R Documentation |
gam
It plots the smooths of a polar GAM fitted with polar_gam()
.
plot_polar_smooths( model, series, comparison = NULL, origin = NULL, facet_terms = NULL, conditions = NULL, exclude_random = TRUE, series_length = 100, split = NULL, sep = "\\.", time_series )
model |
A |
series |
An unquoted expression indicating the model term that defines the series on which smoothing is applied. This is the term that is displayed on the x-axis when plotting. |
comparison |
An unquoted expression indicating the model term for which the comparison will be plotted. |
origin |
The coordinates of the origin as a vector of |
facet_terms |
An unquoted formula with the terms used for faceting. |
conditions |
A list of quosures with |
exclude_random |
Whether to exclude random smooths (the default is |
series_length |
An integer indicating how many values along the time series to use for predicting the outcome term. |
split |
Columns to separate as a named list. |
sep |
Separator between columns (default is |
time_series |
Deprecated, use |
An object of class ggplot
.
library(dplyr) tongue_it01 <- filter(tongue, speaker == "it01") pgam <- polar_gam(Y ~ s(X, by = as.factor(label)), data = tongue_it01) plot_polar_smooths(pgam, X, label)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.