z_grid: Plots multiple platemaps with heatmap of scaled values

View source: R/z_grid.R

z_gridR Documentation

Plots multiple platemaps with heatmap of scaled values

Description

Converts numerical values. well labels, and plate labels into multiple plate heatmaps

Usage

z_grid(
  data,
  well,
  plate_id,
  ncols = 2,
  plate = 96,
  each = FALSE,
  scale_each = FALSE,
  ...
)

Arguments

data

Numerical values to be plotted

well

Vector of well identifiers e.g "A01"

plate_id

Vector of plate identifiers e.g "Plate_1"

ncols

Number of columns to display multiple heatmaps

plate

Number of wells in complete plate (96, 384 or 1569)

each

boolean, allowed for backwards compatibility, scale_each is now the preferred argument name

scale_each

boolean, if true scales each plate individually, if false will scale the pooled values of data

...

additional parameters to plot wrappers

Value

ggplot plot

Examples

df01 <- data.frame(well = num_to_well(1:96),
  vals = rnorm(96),
  plate = 1)

df02 <- data.frame(well = num_to_well(1:96),
  vals = rnorm(96),
  plate = 2)

df <- rbind(df01, df02)

z_grid(data = df$vals,
       well = df$well,
       plate_id = df$plate,
       plate = 96)

Swarchal/platetools documentation built on March 7, 2024, 10 p.m.