View source: R/plot_cumu_arm.R
plot_cumu_arm | R Documentation |
x-axis is date; y-axis is the average of the 9 pin heights' difference from baseline (first measurement) for each arm. One facet per SET id.
plot_cumu_arm(data, columns = 4, pointsize = 2, scales = "fixed")
data |
data frame (e.g. '$arm' piece of output from 'calc_change_cumu()') with one row per faceting variable, and the following columns, named exactly: date, set_id, arm_position, mean_cumu. 'mean_cumu' should be an already-calculated field of change since baseline. |
columns |
number of columns you want in the faceted output |
pointsize |
size of points you want (goes into the 'size' argument of 'ggplot2::geom_point') |
scales |
free or fixed (goes into 'scales' arg of 'facet_wrap') |
a ggplot object
cumu_set <- calc_change_cumu(example_sets)
plot_cumu_arm(cumu_set$arm)
plot_cumu_arm(cumu_set$arm, columns = 1, pointsize = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.