View source: R/plots-standard_curve.R
plot_standard_curve_stacked | R Documentation |
Function generates a plot of stacked on top of each other standard curves for a given analyte form a list of plates. The plot is created with the levey-jennings report in mind, but it can be run by itself.
plot_standard_curve_stacked(
list_of_plates,
analyte_name,
data_type = "Median",
decreasing_dilution_order = TRUE,
monochromatic = TRUE,
legend_type = NULL,
log_scale = c("all"),
verbose = TRUE
)
list_of_plates |
list of Plate objects |
analyte_name |
Name of the analyte of which standard curves we want to plot. |
data_type |
Data type of the value we want to plot - the same
datatype as in the plate file. By default equals to |
decreasing_dilution_order |
If |
monochromatic |
If |
legend_type |
default value is |
log_scale |
Which elements on the plot should be displayed in log scale.
By default |
verbose |
If |
ggplot object with the plot
# creating temporary directory for the example
output_dir <- tempdir(check = TRUE)
dir_with_luminex_files <- system.file("extdata", "multiplate_reallife_reduced",
package = "SerolyzeR", mustWork = TRUE
)
list_of_plates <- process_dir(dir_with_luminex_files,
return_plates = TRUE, format = "xPONENT", output_dir = output_dir
)
plot_standard_curve_stacked(list_of_plates, "ME", data_type = "Median", monochromatic = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.