heatmap.dt: Heatmap as data.table

Description Usage Arguments Value

View source: R/heatmap.R

Description

This function returns a data.table of plot-ready data with one row per group (per panel). Column 'table' contains a nested data.table of z-values for plotting. This table has a column for each x-axis entry and a row for each y-axis entry. Columns 'group' and 'panel' specify the group the series data belongs to. There are two ways to calculate z-values for the heatmap. 1) 'collection' of numeric variables vs single categorical 2) single numeric vs single categorical on a 'series' of dates where yAxisVariable = categorical, xAxisVariable = date and zaxis = numeric

Usage

1
heatmap.dt(data, map, value)

Arguments

data

data.frame to make plot-ready data for

map

data.frame with at least two columns (id, plotRef) indicating a variable sourceId and its position in the plot

value

String indicating which of the three methods to use to calculate z-values ('collection', 'series')

Value

data.table plot-ready data


d-callan/plot.data documentation built on Jan. 27, 2021, 8:37 a.m.