plot_metrics | R Documentation |
Generates a faceted figure of boxplots.
plot_metrics(
data,
sample_col = "Sample IDs",
fill = "Dilutions",
dilution_bool = TRUE,
nrow = 2,
ncol = 2
)
data |
A dataframe containing the calculated metrics from the "calculate" family of quicR functions. |
sample_col |
The name of the column containing the sample IDs. |
fill |
The column containing the fill aesthetic. Usually the dilutions column. |
dilution_bool |
Logical; should dilution factors be included in the plot? |
nrow |
Integer; number of rows to output in the plot. |
ncol |
Integer; number of columns to output in the plot. |
A ggplot object
# This test takes >5 sec
file <- system.file(
"extdata/input_files",
file = "test4.xlsx",
package = "quicR"
)
data <- quicR::get_real(file)[[1]] |>
quicR::normalize_RFU()
meta <- quicR::organize_tables(file) |>
quicR::convert_tables()
calculate_metrics(data, meta) |>
plot_metrics()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.