Learn R Programming

platetools (version 0.1.7)

pchit_grid: Plots multiple heatmaps identifying hits from the first principal component

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

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

Value

ggplot plot

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()`

Examples

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

Run the code above in your browser using DataLab