draw.parametric_effects {gratia} | R Documentation |
Plot estimated effects for model parametric terms
Description
Plot estimated effects for model parametric terms
Usage
## S3 method for class 'parametric_effects'
draw(
object,
scales = c("free", "fixed"),
ci_level = 0.95,
ci_col = "black",
ci_alpha = 0.2,
line_col = "black",
constant = NULL,
fun = NULL,
rug = TRUE,
position = "identity",
angle = NULL,
...,
ncol = NULL,
nrow = NULL,
guides = "keep"
)
Arguments
object |
a fitted GAM, the result of a call to |
scales |
character; should all univariate smooths be plotted with the
same y-axis scale? If Currently does not affect the y-axis scale of plots of the parametric terms. |
ci_level |
numeric between 0 and 1; the coverage of credible interval. |
ci_col |
colour specification for the confidence/credible intervals band. Affects the fill of the interval. |
ci_alpha |
numeric; alpha transparency for confidence or simultaneous interval. |
line_col |
colour specification used for regression lines of linear continuous terms. |
constant |
numeric; a constant to add to the estimated values of the
smooth. |
fun |
function; a function that will be applied to the estimated values
and confidence interval before plotting. Can be a function or the name of a
function. Function |
rug |
logical; draw a rug plot at the bottom of each plot for 1-D smooths or plot locations of data for higher dimensions. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
angle |
numeric; the angle at which the x axis tick labels are to be
drawn passed to the |
... |
additional arguments passed to |
ncol , nrow |
numeric; the numbers of rows and columns over which to spread the plots |
guides |
character; one of |