plotPlate: Plot Plate Layout

View source: R/Utilities.R

plotPlateR Documentation

Plot Plate Layout

Description

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

Usage

plotPlate(dat, plotCol = "SampleGroup", wellCols = NULL)

Arguments

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

Value

A ggplot object

Examples

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")

crukci-bioinformatics/PlateLayout documentation built on Feb. 27, 2023, 6:49 p.m.