pchit_map {platetools}R Documentation

Plots a heatmap identifying hits from the first principal component

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

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

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)

[Package platetools version 0.1.7 Index]