pc_map: Principal component heatmap in a plate layout

Description Usage Arguments Value Examples

View source: R/pc_map.R

Description

Takes the values and well identifiers, calculates the first principal component, scales and plots the component as a heatmap in the form of a 96 or 384-well plate. A way to quickly show variation of multi-parametric data within a plate.

Usage

1
pc_map(data, well, plate = 96, ...)

Arguments

data

Vector of numerical data to calculate the first principal component

well

Vector of well identifiers e.g "A01"

plate

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

...

additional parameters to platetools::z_map

Value

gplot plot

Examples

1
2
3
4
5
6
7
8
df <- data.frame(
  well = num_to_well(1:96),
  vals1 = rnorm(1:96),
  vals2 = rnorm(1:96))

pc_map(data = df[, 2:3],
       well = df$well,
       plate = 96)

Example output



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