pchit_map: Plots a heatmap identifying hits from the first principal...

Description Usage Arguments Value Examples

View source: R/pchit_map.R

Description

Converts numerical values and plate labels intoa plate heatmap with z-scored principal components coloured dependent on a specified threshold of standard deviations above or below the average.

Usage

1
pchit_map(data, well, plate = 96, threshold = 2, palette = "Spectral", ...)

Arguments

data

Numerical values, either a dataframe or a matrix

well

Vector of well identifers e.g "A01"

plate

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

threshold

Threshold of +/- standard deviations form the average to determine a hit

palette

RColorBrewer palette

...

additional arguments to platetools::hit_map

Value

ggplot plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
v1 <- rnorm(1:96)
v2 <- rnorm(1:96)
v3 <- rnorm(1:96)
wells <- num_to_well(1:96)
df <- data.frame(wells, v1, v2, v3)


pchit_map(data = df[, 2:4],
          well = df$wells,
          threshold = 1.5)

Example output



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