b_grid: Plots multiple b-scored normalised platemaps

Description Usage Arguments Value Examples

View source: R/b_grid.R

Description

Transforms numerical values using the b-score normalisation process to account for row and column effects. Uses well and plate labels to plot the normalised values in the form of microtitre plates. Works for 96, 384 and 1536 well plates.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
b_grid(
  data,
  well,
  plate_id,
  plate = 96,
  eps = 0.01,
  maxiter = 10,
  trace.iter = FALSE,
  na.rm = 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"

plate

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

eps

real number greater than 0. A tolerance for divergence

maxiter

int, the maximum number of iterations

trace.iter

Boolean, should progress in convergence be reported?

na.rm

Boolean, should missing values be removed?

...

additional parameters to plot wrappers

Value

ggplot plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

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

Example output



platetools documentation built on June 3, 2021, 5:06 p.m.