- dat
Dataset with columns period
and age
. If y_var
is specified, the dataset must contain the respective column. If model
is specified, the dataset must have been used for model estimation with
gam
or bam
.
- y_var
Optional character name of a metric variable to be plotted.
- model
Optional regression model estimated with gam
or bam
to estimate a smoothed APC surface. Only used if
y_var
is not
specified.
- apc_range
Optional list with one or multiple elements with names
"age","period","cohort"
to filter the data. Each element should
contain a numeric vector of values for the respective variable that should
be kept in the data. All other values are deleted.
- y_var_logScale
Indicator if y_var
should be log10 transformed.
Only used if y_var
is specified. Defaults to FALSE.
- obs_interval
Numeric specifying the interval width based on which the
data is spaced. Only used if y_var
is specified. Defaults to 1, i.e.
observations each year.
- iso_interval
Numeric specifying the interval width between the
isolines along each axis. Defaults to 5.
- color_vec
Optional character vector of color names, specifying the
color continuum.
- color_range
Optional numeric vector with two elements, specifying the
ends of the color scale in the legend.
- line_width
Line width of the isolines. Defaults to 0.5.
- line_color
Character color name for the isolines. Defaults to gray.
- label_size
Size of the labels along the axes. Defaults to 0.5.
- label_color
Character color name for the labels along the axes.
- legend_title
Optional character title for the legend.