add_secondary_data.Rdadds secondary data to a plot
add_secondary_data(
primary_data,
secondary_data,
reference_threshold = NULL,
p,
y_data,
group,
scale = NULL,
shift = NULL,
sec_ylabel,
ylabel
)Dataframe of primary data plotted
Dataframe containing data you'd like to add to plot
Reference threshold values
A ggplot2 object to add data to
String of column name in secondary data to use for plotting
Grouping column
Multiplicative scaling factor
Additive shifting factor
Secondary y axis label
Primary y axis label
a ggplot2 object with additional data