plot_CIs: plot_CIs

Description Usage Arguments Examples

Description

Function generates boxplots for dauer, expression or roaming data along with accompanying NHST comparisons and 95 pct confidence intervals

Usage

1
2
plot_CIs(df, title, plot.contrasts, plot.contrasts.2, ypos, type, offset,
  labels)

Arguments

df

input dataset. Requires a "genotype" column. Response needs to be "pct" for dauer plots, "n_entries" for roaming data, and "cell.norm" for gene expression microscopy data. 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

type

type of plot ("dauer", "roam", "GFP"). Defaults to mRNA plot if no input.

offset

position to offset plot.contrast.2 on the y response scale.

Examples

1
plot_CIs(df, "GFP plot", plot.contrasts = contrasts, ypos = 500, type = "GFP", offset = 100)

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