This is a function used to plot counts in a 96-well plate using a color to represent the count ranges.
There is possibility to plot exact counts in each well.
If plot window is resized, it's best to re-run the function to adjust the scaling.
Sometimes when legend is plotted, whole layout may be shifted, then it's best to stretch the window, and everything will be adjusted automatically.
plot_counts(plate, analyte_name, plot_counts = TRUE, plot_legend = FALSE)
A ggplot object
plate_filepath <- system.file("extdata", "CovidOISExPONTENT_CO.csv",
package = "PvSTATEM", mustWork = TRUE
)
layout_filepath <- system.file("extdata", "CovidOISExPONTENT_CO_layout.xlsx",
package = "PvSTATEM", mustWork = TRUE
)
plate <- read_luminex_data(plate_filepath, layout_filepath)
#> Reading Luminex data from: /home/runner/work/_temp/Library/PvSTATEM/extdata/CovidOISExPONTENT_CO.csv
#> using format xPONENT
#> (WARNING)
#> Number of layout fields is higher than the number of samples. Please check the layout file. Using only first 49 dilutions from the layout file.
#>
#> New plate object has been created with name: CovidOISExPONTENT_CO!
#>
plot_counts(
plate = plate, analyte_name = "OC43_NP_NA",
plot_counts = TRUE, plot_legend = FALSE
)