View source: R/functional_dsp.R
| plot_dsp | R Documentation |
Plots functional contrast curves (DSP) over time.
plot_dsp(
object,
time = NULL,
response = NULL,
treatment = NULL,
group = NULL,
facet = NULL,
show_zero = TRUE,
linewidth = 1,
alpha = 1,
ylab = "Disease suppression profile",
xlab = "Time"
)
object |
An object of class |
time |
Character string for the time column (auto-detected if object is |
response |
Character string for the DSP column. |
treatment |
Character string for the treatment column. |
group |
Optional character vector of grouping variables. |
facet |
Optional character string specifying a variable for faceting. |
show_zero |
Logical; whether to draw a horizontal reference line at y = 0. Default is |
linewidth |
Numeric; width of the lines. |
alpha |
Numeric; transparency of the lines. |
ylab |
Character string; label for the y-axis. |
xlab |
Character string; label for the x-axis. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.