plot.cs_anchor_group_within {clinicalsignificance} | R Documentation |
Plot an Object of Class cs_anchor_group_within
Description
This function creates a generic group level clinical significance plot by plotting the within group change with the associated uncertainty interval around the estimated change on the y-axis.
Usage
## S3 method for class 'cs_anchor_group_within'
plot(
x,
x_lab = "Group",
y_lab = "Mean Intervention Effect\n(with 95%-CI)",
...
)
Arguments
x |
An object of class |
x_lab |
String, x axis label. Defaults to |
y_lab |
String, y axis label, defaults to |
... |
Additional arguments |
Value
A ggplot2 plot
Examples
cs_results <- antidepressants |>
cs_anchor(
patient,
measurement,
mom_di,
mid_improvement = 8,
target = "group",
group = condition
)
# Plot the results "as is"
plot(cs_results)
# Change the axis labels
plot(cs_results, x_lab = "Condition", y_lab = "Treatment Effect")
[Package clinicalsignificance version 2.0.0 Index]