olink_displayPlateLayout: Plot all plates colored by a variable
Description
Displays each plate in a facet with cells colored by the given variable using ggplot and ggplot2::geom_tile.
Usage
olink_displayPlateLayout(
data,
fill.color,
PlateSize = 96,
num_ctrl = 8,
rand_ctrl = FALSE,
Product,
include.label = FALSE
)
Value
An object of class "ggplot" showing each plate in a facet with the cells colored by values in column fill.color in input data
.
Arguments
- data
tibble/data frame in long format returned from the olink_plate_randomizer function.
- fill.color
Column name to be used as coloring variable for wells.
- PlateSize
Integer. Either 96 or 48. 96 is default.
- num_ctrl
Numeric. Number of controls on each plate (default = 8)
- rand_ctrl
Logical. Whether controls are added to be randomized across the plate (default = FALSE)
- Product
String. Name of Olink product used to set PlateSize if not provided. Optional.
- include.label
Should the variable group be shown in the plot.
Examples
Run this coderandomized.manifest <- olink_plate_randomizer(manifest)
olink_displayPlateLayout(data = randomized.manifest, fill.color="Site")
Run the code above in your browser using DataLab