bar.dt: Bar Plot as data.table

Description Usage Arguments Value

View source: R/bar.R

Description

This function returns a data.table of plot-ready data with one row per group (per panel). Columns 'label' and 'value' contain the raw data for plotting. Column 'group' and 'panel' specify the group the series data belongs to. There are two options to calculate y-values for plotting. 1) raw 'identity' of values from data.table input 2) 'count' occurances of values from data.table input

Usage

1
bar.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 how to calculate y-values ('identity', 'count')

Value

data.table plot-ready data


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