drcPhotoBooth: DRC Curves in a standardized format

Description Usage Arguments Value Examples

Description

Plot each selected targets for each cmpd from a PureHoney tibble separatly in a (n-curve)x1 cowplot::plot_grid() with theme_assayr(). This function is wrapper for the plot output and expects pre-caluclated data frames.

Usage

1
2
3
drcPhotoBooth(dr_tib, coef_tib, curves_tib, y_var = "conc_incell_uM",
  grouping_var = "tx_cmpd", output_path = "./", new_folder = TRUE,
  limits = list(Isobutyryl = c(0, 45), Propionyl = c(0, 45)))

Arguments

dr_tib

A data frame or tibble with the targets to be plotted.

coef_tib

A data frame or tibble with the drc::drm() fit coefficents.

curves_tib

A data frame or tibble with the estimated curve data from assayr::getCurves().

y_var

A character with the column name in dr_tib to be used for the y-axis. Default is "conc_incell_uM"; "conc_corrected" may also be useful.

grouping_var

A character with the column name in dr_tib to be used for splitting the data into plots. Default is "tx_cmpd", "tx_total" may also be useful.

output_path

A valid file path. Default is current working directory.

new_folder

A boolean whether to create a new folder automatically.

limits

A named list with the names matching unique(tib$curve_plot) and values of numeric vectors with length of 2, describind the y-axis limits for each curve_plot. If there is a target present in targs that is not in limits the limits will be calculated with ggplot2's defualt behavior. Not used currently.

Value

A directory of .png images, one for each in unique(tib$tx_cmpd).

Examples

1
2
pah <- filter(samps2, run == "PAH0503") # tib
drcPhotoBooth(pah)

stevehoang/assayr documentation built on May 24, 2019, 7:20 a.m.