View source: R/save_dye_screen_model_plots.R
save_model_figure | R Documentation |
A wrapper function for adding facets, calculating dimenstions, and saving with a consistent name. In a better version of this function, would likely be refactored alongside plot_with_preds()
and plot_analyzed_hits()
. Calls on save_stacked_plot()
to do so.
save_model_figure(
tidied_for_tmas,
by_var_fit,
tidied_screen,
hits_by_channel,
extract_figure_title = TRUE,
extract_layout_from_tidied = TRUE,
extract_tmas_from_by_var_fit = TRUE,
layout = NULL,
model_tmas = NULL,
.well_col_layout = "variable",
.grid_margin_ratio = 215/110,
...
)
tidied_for_tmas |
a grouped, nested tibble, as returned by |
by_var_fit |
a tibble, as output by |
tidied_screen |
a tibble, as returned by |
hits_by_channel |
a tibble containing hit assignments, as expected by |
extract_figure_title |
a boolean; if TRUE, both saved name and plot title are extracted from the given data via |
extract_layout_from_tidied |
a boolean; if TRUE, the experimental layout is extracted from |
extract_tmas_from_by_var_fit |
a boolean; if TRUE, the tmas applied to the plots are extracted directly from |
layout |
if extract_layout_from_tidied is FALSE, a tibble containig a layout, as returned by |
model_tmas |
if extract_tmas_from_by_var_fit is FALSE, a tibble containing the extracted model tmas, formatted to match the output of |
.well_col_layout |
a string, giving the name of the column containing well names in |
.grid_margin_ratio |
a number, passed to |
... |
additional named parameters, passed to the functions: |
if assigned, the final figure object. regardless of assignment, a saved figure, with names, directories, and file types as dictated by save_stacked_plots()
. Uses save_stacked_plots()
defaults, unless these arguments are overwritten by passing new named values for them to this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.