plot_csvy_control | R Documentation |
Creates a list of graphical options to customize plots generated by plot.csvy
.
This includes labels, text sizes, colors, shapes, themes, and other display features.
plot_csvy_control(
x1lab = NULL,
x1_labels = TRUE,
x2lab = NULL,
x2_labels = TRUE,
x3lab = NULL,
x3_labels = TRUE,
x4_vals = NULL,
x4_labels = NULL,
ynm = NULL,
ci = TRUE,
legend = TRUE,
ylab = TRUE,
x1size = 3.8,
x2size = 3.8,
constrained_color = "cornflowerblue",
unconstrained_color = "#A3C99A",
constrained_shape = 16,
unconstrained_shape = 18,
ribbon_fill = "lightblue",
line_color = "black",
base_theme = ggplot2::theme_minimal(),
subtitle.size = 12,
angle = 0,
hjust = 0.1
)
x1lab |
Character. Label for the first covariate (x-axis). Default is |
x1_labels |
Logical or Character vector. Custom tick labels for the first covariate. Default is |
x2lab |
Character. Label for the second covariate (x-axis). Default is |
x2_labels |
Logical or Character vector. Custom tick labels for the second covariate. Default is |
x3lab |
Character. Label for the third covariate, if used (for subtitles or grouping). Default is |
x3_labels |
Logical or Character vector. Custom labels for the third covariate. Default is |
x4_vals |
Character vector. For models with more than three predictors, specifies the category to use for each additional predictor. Defaults to NULL, using the mode of each. |
x4_labels |
Character vector. Custom labels for the fourth covariate. Default is |
ynm |
Character. Label for the response. Default is |
ci |
Logical. If TRUE, confidence bands are displayed. Defaults to TRUE. |
legend |
Logical. If TRUE, legend for constrained fit or unconstrained fit will be shown. Defaults to TRUE. |
ylab |
Logical. If TRUE, the response name will be shown on the y-axis. Defaults to TRUE. |
x1size |
Numeric. Font size for annotation labels on the x1 axis. Default is |
x2size |
Numeric. Font size for annotation labels on the x2 axis. Default is |
constrained_color |
Character. Color used to display fitted values and intervals from the constrained model. Default is |
unconstrained_color |
Character. Color used to display fitted values and intervals from the unconstrained model. Default is |
constrained_shape |
Integer. Shape code (used by |
unconstrained_shape |
Integer. Shape code for points from unconstrained fits. Default is |
ribbon_fill |
Character. Fill color for the confidence ribbon around the fitted lines. Default is |
line_color |
Character. Color of the lines connecting the fitted values. Default is |
base_theme |
A |
subtitle.size |
Numeric. Font size for the subtitle text in the plot. Default is |
angle |
Numeric. Angle (in degrees) to rotate x-axis labels (typically for x1). Default is |
hjust |
Numeric. Horizontal justification for rotated x-axis labels. Default is |
A named list of graphical control parameters to be passed to the control
argument in plot.csvy
.
plot_csvy_control(
x1lab = "Age Group",
x2lab = "Region",
constrained_color = "cornflowerblue",
unconstrained_color = "gray80",
x1size = 4.5
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.