pchit_grid: Plots multiple heatmaps identifying hits from the first...

Description Usage Arguments Value Examples

View source: R/pchit_grid.R

Description

Converts numerical values, well labels, and plate labels into multiple heatmaps of plates, with z-scored principal components coloured dependent on a specified threshold of standard deviations above or below the average.

Usage

1
pchit_grid(data, well, plate_id, ...)

Arguments

data

Numerical values, either a dataframe or a matrix

well

Vector of well identifers e.g "A01"

plate_id

Vector of plate identifiers e.g "Plate_1"

...

additional arguments to 'platetools::hit_grid()'

Value

ggplot plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
df01 <- data.frame(
  well = num_to_well(1:96),
  plate = 1,
  vals1 = rnorm(1:96),
  vals2 = rnorm(1:96))

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

df <- rbind(df01, df02)

pchit_grid(data = df[,3:4],
           well = df$well,
           plate_id = df$plate,
           plate = 96)

Example output



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