histogram: Histogram data file

Description Usage Arguments Value

View source: R/histogram.R

Description

This function returns the name of a json file containing plot-ready data with one row per group (per panel). Columns 'x' and 'y' contain the bin label and count respectively. Column 'group' and 'panel' specify the group the series data belongs to.

Usage

1
histogram(data, map, binWidth = NULL, value = c("count", "proportion"))

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

binWidth

numeric value indicating width of bins, character (ex: 'year') if xaxis is a date

value

String indicating how to calculate y-values ('count, 'proportion')

Value

character name of json file containing plot-ready data


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