It is a generic function to plot a 96-well plate with coloured 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 colours in the wells using ggplot2. This function is not intended for the user to use directly. Rather, it is used by other functions specified in this file.
plot_plate(
colours,
plot_numbers = FALSE,
numbers = NULL,
plot_title = "Plate",
plot_legend = FALSE,
legend_mapping = NULL
)
A ggplot object
A vector with 96 colours will be used to colour the wells; the order is from left to right and top to bottom
Logical value indicating if the well numbers should be plotted, default is FALSE
An optional vector with 96 numbers plotted on the wells. Order is from left to right and top to bottom and must have the same length as colours.
It could be used, for instance, to plot the bead count of each well. Must be provided in case the plot_numbers
parameter is set to TRUE
The title of the plot (default is "Plate")
Logical value indicating if the legend should be plotted, default is FALSE
A named vector with the colour mapping used to create the legend