plot_dauer_SEs: plot_dauer_SEs

Description Usage Arguments Examples

Description

Function generates boxplots for dauer data along with standard error generate from a glm fit.

Usage

1
plot_dauer_SEs(df, title, plot.contrasts, plot.contrasts.2, ypos)

Arguments

df

input dataset. Requires a "genotype" column. Response needs to be "pct" for dauer plots. Also requires a "mixed" dataset, generated by either MM_CIs.R, Mm_CI_trans_Tukey.R or MM_CI_trans_dunnett.R

title

title for the plot

plot.contrasts

list of pairwise comparisons to plot. Usually generated by selecting a list of comparisons using tukey_contrasts or dunnett_contrasts functions which use the lsmeans package, ie plot.contrasts = c("",contrasts$prange[1:2]) for 2 comparisons to a control.

plot.contrasts.2

list of secondary comparisons (ie rescue lines). These will be colored red and offset in the y direction indicated by offset.

ypos

y position of p value for plot.contrasts on the plot response scale

Examples

1
plot_dauer_SEs(df, title = "dauer plot", plot.contrasts = plot.contrasts, ypos =  1.075)

mikeod38/dauergut documentation built on May 30, 2019, 7:16 p.m.