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

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)

platetools documentation built on May 30, 2017, 2:04 a.m.