Learn R Programming

platetools (version 0.1.7)

b_grid: Plots multiple b-scored normalised platemaps

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

b_grid(
  data,
  well,
  plate_id,
  plate = 96,
  eps = 0.01,
  maxiter = 10,
  trace.iter = FALSE,
  na.rm = FALSE,
  ...
)

Value

ggplot plot

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

Examples

Run this code
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)

Run the code above in your browser using DataLab