plot.cs_anchor_group_within | R Documentation |
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.
## S3 method for class 'cs_anchor_group_within'
plot(
x,
x_lab = "Group",
y_lab = "Mean Intervention Effect\n(with 95%-CI)",
...
)
x |
An object of class |
x_lab |
String, x axis label. Defaults to |
y_lab |
String, y axis label, defaults to |
... |
Additional arguments |
A ggplot2 plot
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.