chart_ist: Initiate a chartist visualisation

Description Usage Arguments Examples

View source: R/chartist.R

Description

Initiate a chartist chart.

Usage

1
2
chart_ist(data, x, type = "line", width = NULL, height = NULL,
  elementId = NULL)

Arguments

data

data.frame containing data to plot.

x

Must be passed for line and bar (type).

type

type of charts, defaults to line, may also be bar or pie.

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, defaults to NULL.

elementId

Use specific element id.

Examples

1
2
3
mtcars %>%
    chart_ist(cyl) %>%
    add_ist(hp)

JohnCoene/chartist documentation built on May 7, 2019, 11:17 a.m.