Plot differences of smooths
Plot differences of smooths
## S3 method for class 'difference_smooth' draw( object, select = NULL, rug = FALSE, ref_line = FALSE, contour = FALSE, contour_col = "black", n_contour = NULL, ci_alpha = 0.2, ci_colour = "black", line_col = "steelblue", scales = c("free", "fixed"), ncol = NULL, nrow = NULL, guides = "keep", xlab = NULL, ylab = NULL, title = NULL, subtitle = NULL, caption = NULL, ... )
object |
a fitted GAM, the result of a call to |
select |
character, logical, or numeric; which smooths to plot. If
|
rug |
logical; |
ref_line |
logical; |
contour |
logical; |
contour_col |
colour specification for contour lines. |
n_contour |
numeric; the number of contour bins. Will result in
|
ci_alpha |
numeric; alpha transparency for confidence or simultaneous interval. |
ci_colour |
colour specification for the confidence/credible intervals band. |
line_col |
colour specicification for drawing lines |
scales |
character; should all univariate smooths be plotted with the
same y-axis scale? The default, |
ncol, nrow |
numeric; the numbers of rows and columns over which to spread the plots |
guides |
character; one of |
xlab, ylab, title, subtitle, caption |
character; labels with which to annotate plots |
... |
additional arguments passed to |
load_mgcv() df <- data_sim("eg4", seed = 42) m <- gam(y ~ fac + s(x2, by = fac) + s(x0), data = df, method = "REML") diffs <- difference_smooths(m, smooth = "s(x2)") draw(diffs)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.