uv_charts: Setup a uvchart

Description Usage Arguments Examples

View source: R/uvcharts.R

Description

Initiate a uvchart

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
uv_charts(data, x, type = "Line", width = "100%", height = "100%",
  elementId = NULL)

uv_bar(data, x, width = "100%", height = "100%", elementId = NULL)

uv_line(data, x, width = "100%", height = "100%", elementId = NULL)

uv_area(data, x, width = "100%", height = "100%", elementId = NULL)

uv_stackbar(data, x, width = "100%", height = "100%", elementId = NULL)

uv_stackarea(data, x, width = "100%", height = "100%", elementId = NULL)

uv_pie(data, x, width = "100%", height = "100%", elementId = NULL)

uv_donut(data, x, width = "100%", height = "100%", elementId = NULL)

uv_percentbar(data, x, width = "100%", height = "100%",
  elementId = NULL)

uv_percentarea(data, x, width = "100%", height = "100%",
  elementId = NULL)

uv_stepupbar(data, x, width = "100%", height = "100%", elementId = NULL)

uv_polar(data, x, width = "100%", height = "100%", elementId = NULL)

uv_waterfall(data, x, width = "100%", height = "100%", elementId = NULL)

Arguments

data

data.frame of data to plot.

x

x variable.

type

type of chart to plot, see details.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

id of div element containing chart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mtcars %>%
  uv_charts(mpg, type = "Area") %>%
  uv_add(qsec)

mtcars %>%
  uv_bar(mpg) %>%
  uv_add(qsec)

mtcars %>%
  uv_line(mpg) %>%
  uv_add(qsec)

mtcars %>%
  uv_pie(mpg) %>%
  uv_add(qsec)

mtcars %>%
  uv_stackbar(mpg) %>%
  uv_add(qsec)

mtcars %>%
  uv_percentarea(mpg) %>%
  uv_add(qsec)

JohnCoene/uvcharts documentation built on May 7, 2019, 11:59 a.m.