display_plate_layout: Display a layout with ggplot2

Description Usage Arguments Examples

Description

The function returns the basic layer to be modified with further geoms by the user, depending on the purpose.

Usage

1

Arguments

layout

A plate layout.

...

Arguments passed to the ggplot2::geom_tile() aesthetic.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(ggplot2)

layout_file <- system.file("extdata", "platelayout_maldi.xlsx", package = "summerrmass")

plate_384 <- import_layout_from_excel(layout_file, meta_row = c(Concentration = 1))
display_plate_layout(plate_384)  # all defined wells
display_plate_layout(plate_384, fill = content)
display_plate_layout(plate_384, fill = as.numeric(Concentration))
display_plate_layout(plate_384, fill = content, alpha = as.numeric(Concentration)) +
  labs(alpha = "concentration")

benjbuch/summerr documentation built on July 11, 2021, 9:40 a.m.