plot_analyzed_hits: Plot

View source: R/save_dye_screen_model_plots.R

plot_analyzed_hitsR Documentation

Plot

Description

A wrapper function for plot_with_preds; plot_analyzed_hits uses an additional input tibble to filter the plotted data to include only hits, and adds custom plot titles. In a better version of this function, would likely be refactored alongside plot_with_preds() and save_model_figure().

Usage

plot_analyzed_hits(
  tidied_for_plot,
  hits_by_channel,
  model_tmas,
  .dye_channel_col = "dye_channel_f",
  .plot_assignment = "hit",
  .var_col = ".var",
  ...
)

Arguments

tidied_for_plot

a tibble of raw data, as returned by tidy_for_tmas

hits_by_channel

a tibble, as expected by pull_assigned, containing assignments matching to values found in tidied_fot_plot, in the column specifided through the .dye_channel_col argument.

model_tmas

a tibble, as returned by extract_model_tmas

.dye_channel_col

a string, giving the name of the column in tidied_for_plot containing information on which hits were called, e.g. "dye_channel_f", which typically contains values in the format <dye_name>_<channel_name>, e.g. "T004_FAM".

.plot_assignment

a string, passed to pull_assigned; all values with this assignment in hits_by_channel will appear in the output plot.

.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"

...

additional arguments, passed to plot_with_preds().

Value

a ggplot2 object, as returned by plot_with_preds, for a defined subset of the data, and with a plot title.


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