tidy_for_plot: Tidy model data for plotting

tidy_for_plotR Documentation

Tidy model data for plotting

Description

Ultimately, may not export this function.

Usage

tidy_for_plot(
  tidied_for_tmas,
  by_var_fit,
  layout,
  .var_col = ".var",
  .model_name_col = "model_name",
  .hit_filt_col = "dye_channel_f",
  .hit_filt_components = c("dye", "channel_f"),
  ...
)

Arguments

tidied_for_tmas

a tibble of raw data, as returned by tidy_for_tmas

by_var_fit

a tibble of fit results, as returned by add_model_fits

layout

a tibble of plate layout information, as returned by read_plate_layout or extract_plate_layout

.var_col

a string, giving the name of the column in both tidy_for_tmas and by_var_fit giving identical unqiue identifiers fo a given dataset. Defaults to ".var"

.model_name_col

a string, giving the name of column in by_var_fit which gives the name of the fitted model, e.g. "model_1". Defaults to "model_name".

.hit_filt_col

a string, giving the name of the column which is created here through a unite() operation, and later matched to hit calls. Defaults to "dye_channel_f"

.hit_filt_components

a character vector of length 2, giving the columns in tidied_for_tmas to join (in the given order) to create the column which will bear the name given in .hit_filt_col, with an underscore separator. Defaults to c("dye", "channel_f").

...

additional arguments, not passed to anything internal here, but allows for the function to recieve named arguments from upstream functions while ignoring arguments passed with ... which match nothing in this function.

Details

Use tidy_for_plot to prepare raw and predicted data for plotting.

Value

a tibble, rady for passing to downstream plotting functions.


taiawu/dsfworld_package documentation built on June 18, 2024, 5:39 a.m.