plot_standard_curve_analyte_with_model {SerolyzeR} | R Documentation |
Plot standard curve of a certain analyte with fitted model
Description
Function plots the values of standard curve samples and the fitted model.
Usage
plot_standard_curve_analyte_with_model(
plate,
model,
data_type = "Median",
decreasing_rau_order = TRUE,
log_scale = c("all"),
plot_asymptote = TRUE,
plot_test_predictions = TRUE,
plot_blank_mean = TRUE,
plot_rau_bounds = TRUE,
plot_legend = TRUE,
legend_position = "bottom",
verbose = TRUE,
...
)
Arguments
plate |
Plate object |
model |
fitted |
data_type |
Data type of the value we want to plot - the same
datatype as in the plate file. By default equals to |
decreasing_rau_order |
If |
log_scale |
Which elements on the plot should be displayed in log scale.
By default |
plot_asymptote |
If |
plot_test_predictions |
If |
plot_blank_mean |
If |
plot_rau_bounds |
If |
plot_legend |
If |
legend_position |
the position of the legend, a possible values are |
verbose |
If |
... |
Additional arguments passed to the |
Value
a ggplot object with the plot
Examples
path <- system.file("extdata", "CovidOISExPONTENT.csv",
package = "SerolyzeR", mustWork = TRUE
)
layout_path <- system.file("extdata", "CovidOISExPONTENT_layout.xlsx",
package = "SerolyzeR", mustWork = TRUE
)
plate <- read_luminex_data(path, layout_filepath = layout_path, verbose = FALSE)
model <- create_standard_curve_model_analyte(plate, analyte_name = "Spike_B16172")
plot_standard_curve_analyte_with_model(plate, model, decreasing_rau_order = FALSE)