plot_d_a_cohort.Rd
This function plots D-score against age by cohort
plot_d_a_cohort(
data,
daz = FALSE,
show_smooth = FALSE,
file = NULL,
col_manual = NULL,
model_name = NULL,
ref_name = c("preliminary_standards", "phase1", "dutch", "gcdg", "none"),
size = 0.5,
shape = 1,
xlim = c(0, 60),
ylim = c(0, 90),
xbreaks = seq(0, 60, 12),
ybreaks = seq(0, 90, 20),
smooth_line_color = "grey",
device = "pdf"
)
Data on which model was fitted
Logical indicating whether to plot D-score or DAZ.
Logical indicating whether to show a smoothed line
A filename to which the pdf is saved. If not specified, no plot is saved.
A named vector of colors to use for the cohorts.
Name of the model used for D-score calculation.
Name of reference to be plotted.
Size of points in the plot.
Shape of points in the plot.
Limits for the x-axis.
Limits for the y-axis.
Breaks for the x-axis.
Breaks for the y-axis.
Color of the smoothed line.
Device to use. Can be either be a device function (e.g. png()), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).
A object of class ggplot