plot_cumu_arm: Make a graph of change over time by arm position

View source: R/plot_cumu_arm.R

plot_cumu_armR Documentation

Make a graph of change over time by arm position

Description

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.

Usage

plot_cumu_arm(data, columns = 4, pointsize = 2, scales = "fixed")

Arguments

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')

Value

a ggplot object

Examples

cumu_set <- calc_change_cumu(example_sets)
plot_cumu_arm(cumu_set$arm)
plot_cumu_arm(cumu_set$arm, columns = 1, pointsize = 2)

swmpkim/SETr documentation built on May 6, 2024, 11:15 p.m.