plot_plate {PvSTATEM} | R Documentation |
Plot a 96-well plate with colored wells
Description
It is a generic function to plot a 96-well plate with colored wells used by other functions in this package, mainly to plot layout and counts. The function uses a background image of a 96-well plate and plots the colors in the wells using ggplot2. This function is not intended to be used directly by the user. Rather, it is used by other functions, specified in this file.
Usage
plot_plate(
colors,
plot_numbers = FALSE,
numbers = NULL,
plot_title = "Plate",
plot_legend = FALSE,
legend_mapping = NULL
)
Arguments
colors |
A vector with 96 colors that will be used to color the wells, order is from left to right and top to bottom |
plot_numbers |
Logical value indicating if the well numbers should be plotted, default is |
numbers |
An optional vector with 96 numbers, plotted on the wells. Order is from left to right and top to bottom, must have the same length as colors. It could be used, for instance, to plot the bead count of each well. Must be provided in case the |
plot_title |
The title of the plot (default is "Plate") |
plot_legend |
Logical value indicating if the legend should be plotted, default is |
legend_mapping |
A named vector with the colors mapping used to create the legend |
Value
A ggplot object