plot_layout {PvSTATEM} | R Documentation |
Plot layout of a 96-well plate
Description
This is a function used to plot the layout of a 96-well plate using a color to represent the sample types.
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.
Usage
plot_layout(plate, plot_legend = TRUE)
Arguments
plate |
The plate object with the layout information |
plot_legend |
Logical indicating if the legend should be plotted |
Value
A ggplot object
Examples
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)
plot_layout(plate = plate, plot_legend = TRUE)
[Package PvSTATEM version 0.0.4 Index]