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

View source: R/pchit_grid.R

pchit_gridR Documentation

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, ...)

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

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)

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