pchit_map | R Documentation |
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.
pchit_map(data, well, plate = 96, threshold = 2, palette = "Spectral", ...)
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 |
ggplot plot
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.