plotPlate | R Documentation |
Plot the plate with wells coloured according to a column in the samplesheet, if there is column called Replicate the numbers will also be printed
plotPlate(dat, plotCol = "SampleGroup", wellCols = NULL)
dat |
The plate layout tables |
plotCol |
The column of the table by which to colour the wells |
wellCols |
A named vector of columns for colouring the wells. Names should match the sample groups in plotCol |
A ggplot object
library(readr) designSheet <- system.file("extdata", "metadata_12x3.tsv", package = "PlateLayout") bColumns <- c("ExtractionInformation", "PassageNumber") designTable <- read_tsv(designSheet) # Create an R object in the session plateLayout <- randomizeSinglePlate(designTable, batchColumns = bColumns, nIter = 100) plotPlate(plateLayout) plotPlate(plateLayout, "ExtractionInformation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.