View source: R/facet_parametric_plot.R
facet_parametric_plot | R Documentation |
facet_parametric_plot
creates a multi-panel plot of point plots with confidence interval ranges using ggplot2
.
facet_parametric_plot(
qgam,
pred,
cond = NULL,
print.summary = FALSE,
order = NULL,
ncol = 1,
xlab = "fit",
ylab = NULL,
scales = "free",
size = 0.5,
color = NULL,
alpha = 1)
qgam |
An mqgam object created with |
pred |
The predictor term to plot. Note: This is no longer identical to the |
cond |
A named list of the values to use for the other predictor terms (not in view). Used for choosing between smooths that share the same view predictors. |
print.summary |
Logical: whether or not to print summary. |
order |
Specify the order with which the levels given in |
ncol |
The number of columns of the multi-panel plot. |
xlab |
The x-axis label. |
ylab |
The y-axis label. |
scales |
Should scales be free ( |
size |
Size argument for the ggplot object; specifies the size of points and lines. |
color |
Color argument for the ggplot object; specifies the color of points and lines. |
alpha |
Alpha argument for the ggplot object; specifies the transparency of points and lines. |
A ggplot object.
D. Schmitz
Fasiolo M., Goude Y., Nedellec R., & Wood S. N. (2017). Fast calibrated additive quantile regression. URL: https://arxiv.org/abs/1707.03307
van Rij J, Wieling M, Baayen R, & van Rijn H (2020). itsadug: Interpreting Time Series and Autocorrelated Data Using GAMMs. R package version 2.4.
Wickham, H. (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York.
# basic example
facet_parametric_plot(qgam = mtqgam_mqgam,
pred = "factor_3")
# combining facet_parametric_plot with ggplot2
facet_parametric_plot(qgam = mtqgam_mqgam,
pred = "factor_3") +
theme_void() +
labs(subtitle = "This is a subtitle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.