Learn R Programming

platetools (version 0.1.7)

pc_map: Principal component heatmap in a plate layout

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

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

Value

gplot plot

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

Examples

Run this code
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)

Run the code above in your browser using DataLab