draw.evaluated_parametric_term {gratia} | R Documentation |
Plot estimated parametric effects
Description
Plots estimated univariate and bivariate smooths using ggplot2.
Usage
## S3 method for class 'evaluated_parametric_term'
draw(
object,
ci_level = 0.95,
constant = NULL,
fun = NULL,
xlab,
ylab,
title = NULL,
subtitle = NULL,
caption = NULL,
rug = TRUE,
position = "identity",
response_range = NULL,
...
)
Arguments
object |
an object, the result of a call to
|
ci_level |
numeric between 0 and 1; the coverage of credible interval. |
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 |
xlab |
character or expression; the label for the x axis. If not
supplied, a suitable label will be generated from |
ylab |
character or expression; the label for the y axis. If not
supplied, a suitable label will be generated from |
title |
character or expression; the title for the plot. See
|
subtitle |
character or expression; the subtitle for the plot. See
|
caption |
character or expression; the plot caption. See
|
rug |
For |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
response_range |
numeric; a vector of two values giving the range of
response data for the guide. Used to fix plots to a common scale/range.
Ignored if |
... |
arguments passed to other methods. |
Value
A ggplot2::ggplot()
object.
Author(s)
Gavin L. Simpson