plot_subscreen: Plot a dye screen for a subset of dyes, and either wrap or...

View source: R/plot_dye_screen.R

plot_subscreenR Documentation

Plot a dye screen for a subset of dyes, and either wrap or grid for facets.

Description

A wrapper function for plot_dye_screen, meant to ease the creation of the standard plots (wrap by dye, and grid by dye and channel) created during a dye screen analysis workflow.

Usage

plot_subscreen(
  tidied_screen,
  dyes,
  .facet_type = "wrap",
  plot_title = "",
  .dye_col = "dye",
  .channel_col = "channel_f",
  ...
)

Arguments

tidied_screen

a tibble containing raw data from a dye screen, both protein and buffer, e.g. as output by tidy_dye_screen()

dyes

a character vector, containing names of the dyes to be displayed in the output plot. Gets passed to filter. Must be present in the column with the name supplied in the .dye_col argument of this function (defaults to "dye")

.facet_type

the type of faceting to apply. Options are "wrap" or "grid", which call the helper functions add_facet_wrap_10 or add_facet_grid, respectively.

plot_title

a title to add to the plot.

.dye_col

a string, containing the name of the column in user-supplied data 'tidied_screen', containing dye names which can be filtered using the supplied vector passed to the 'dyes' argument of this function.

.channel_col

a string, containing the name of the column in user-supplied data 'tidied_screen', containing channels.

...

additiona arguments, passed to force_panel_sizing

Value

a ggplot2 object containing dye screening data, complete with titles, facet sizes, and appropraite faceting.


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