View source: R/plot-age-resids-mpd.R
plot_age_resids_mpd | R Documentation |
Plot the age fits for an MPD model
plot_age_resids_mpd(
model,
gear = 1,
type = c("age", "year", "birth_year"),
comp_color = "black",
comp_point_size = 0.5,
fit_line_color = "red",
ylim = c(-3, 3),
text_title_size = 12,
leg_loc = c(1, 1),
angle_x_labels = FALSE
)
model |
An iscam model object (class mdl_cls) |
gear |
The number of the gear to plot |
type |
One of "age", "year", or "birthy_year" |
comp_color |
Color for the age comp data lines and points |
comp_point_size |
Size of the age composition points |
fit_line_color |
Color for the age fit line |
ylim |
The y-axis limits (vector of 2) |
text_title_size |
Size of text for the axis titles |
leg_loc |
Legend location (vector of 2) |
angle_x_labels |
If |
A ggplot2::ggplot()
object
Other Age plotting functions:
plot_age_fits_mcmc()
,
plot_age_fits_mpd()
,
plot_age_resids_boxes_mcmc()
,
plot_age_resids_mcmc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.