plotPlateHeatMap: Plot heat-map of the plate

Description Usage Arguments Value Examples

Description

Plots a heatmap of a chosen measured quantity. Colour scaling assigns blue gradient for negative numbers, white for zero, red gradient for positive values.

Usage

1
2
3
plotPlateHeatMap(in.dt, in.meas, in.well, in.meas.min = NULL,
  in.meas.max = NULL, in.title.scale = "", in.wells.neg = NULL,
  in.wells.pos = NULL, in.wells.untr = NULL, ...)

Arguments

in.dt

Input data table. Should contain at least two columns: well names (e.g. 'A01', 'C03'), measurment values.

in.meas

String of the column name with the measurement to plot.

in.well

String of the column name with well names.

in.meas.min

Minimum value for colour bar scale (default 'NULL'). If 'NULL', minimum is calculated from data.

in.meas.max

Maximum value for colour bar scale (default 'NULL'). If 'NULL', maximum is calculated from data.

in.title.scale

String with colour bar title (default ”).

in.wells.neg

String vector with names of wells with negative controls (default 'NULL'). If provided, yellow borders are drawn around those wells.

in.wells.pos

String vector with names of wells with positive controls (default 'NULL'). If provided, green borders are drawn around those wells.

in.wells.untr

String vector with names of untreated wells (default 'NULL'). If provided, grey borders are drawn around those wells.

Value

ggplot2 object plot

Examples

1
2
3
4
require(data.table)
dt = data.table(well = c('A01', 'A02', 'A03', 'B01', 'B02', 'B03', 'C01', 'C02', 'C03'),
                npi = rnorm(9))
plotPlateHeatMap(dt, 'npi', 'well', -1.2, +1.2, 'NPI', 'B01', 'C03', 'A02')

dmattek/hcs-package documentation built on May 16, 2019, 7:24 a.m.