dataToJSON: Converting data frame into a JSON object suitable for charts.

Description Usage Arguments Value

View source: R/functions.R

Description

Converting data frame into a JSON object suitable for charts.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dataToJSON(
  data,
  label,
  chartType,
  xLabels,
  type = NULL,
  rankPosition = NULL,
  excludeRank = NULL,
  leadingText = NULL,
  trailingText = NULL,
  name = NULL,
  caption = NULL,
  title = NULL,
  subtitle = NULL,
  xType = NULL,
  y0Type = NULL,
  y1Type = NULL,
  xAxisLabel = NULL,
  y0AxisLabel = NULL,
  y1AxisLabel = NULL,
  xUnits = NULL,
  y0Units = NULL,
  y1Units = NULL,
  legendPos = NULL,
  seriesTypes = NULL,
  y0Labels = NULL,
  y1Labels = NULL,
  seriesXAxis = NULL,
  seriesYAxis = NULL
)

Arguments

data

data frame object

label

json key

chartType

type of chart, eg. "bar"

xLabels

vector of x-axis labels

type

optional

rankPosition

optional

excludeRank

optional

leadingText

optional

trailingText

optional

name

optional

caption

optional

title

optional

subtitle

optional

xType

optional

y0Type

optional

y1Type

optional

xAxisLabel

optional

y0AxisLabel

optional

y1AxisLabel

optional

xUnits

optional

y0Units

optional

y1Units

optional

legendPos

optional

seriesTypes

optional

y0Labels

optional

y1Labels

optional

seriesXAxis

optional

seriesYAxis

optional

Value

json object


andrew-a-hale/initmediaRUtils documentation built on Aug. 25, 2020, 2:51 p.m.