View source: R/baseline_model.R
plot.baseline_model | R Documentation |
Creates a detailed ggplot2 visualization of the baseline model design matrix. Each non-constant term is plotted over time. The plot includes separate panels for each block and supports customization of titles, axis labels, line size, and color palette.
## S3 method for class 'baseline_model'
plot(
x,
term_name = NULL,
title = NULL,
xlab = "Time",
ylab = "Design Matrix Value",
line_size = 1,
color_palette = "Set1",
...
)
x |
A baseline_model object. |
term_name |
Optional term name (a character string) specifying which term to plot. If omitted, the first non-constant term is plotted. |
title |
Optional title for the plot. If not provided, a default title is generated. |
xlab |
Label for the x-axis (default: "Time"). |
ylab |
Label for the y-axis (default: "Design Matrix Value"). |
line_size |
Numeric value for line thickness (default: 1). |
color_palette |
A palette name for the line colors (default: "Set1"). |
... |
Additional arguments passed to ggplot2::geom_line. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.