View source: R/plot_dye_screen.R
plot_subscreen | R Documentation |
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.
plot_subscreen(
tidied_screen,
dyes,
.facet_type = "wrap",
plot_title = "",
.dye_col = "dye",
.channel_col = "channel_f",
...
)
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 |
a ggplot2 object containing dye screening data, complete with titles, facet sizes, and appropraite faceting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.