resp_ist: Configure responsive options for chartist visualisation

Description Usage Arguments Examples

View source: R/options.R

Description

Configure responsive options for chartist visualisation

Usage

1
resp_ist(p, query, width, height, low, high, chartPadding, ...)

Arguments

p

a chartist object.

query

responsive query.

width

set fixed width in pixels or percent (i.e.: 300px, 70%).

height

set fixed height in pixels or percent (i.e.: 300px, 70%).

low

lower bound of value.

high

higher bound of value.

chartPadding

padding around chart div.

...

additional options.

Examples

1
2
3
4
5
6
7
8
9
mtcars$models <- row.names(mtcars)

mtcars %>%
    chart_ist(models) %>%
    add_ist(qsec) %>%
    resp_ist(query = "screen and (max-width: 640px)", low = 15,
        chartPadding = 50) %>%
    resp_ist(query = "screen and (min-width: 641px) and (max-width: 1024px)",
        chartPadding = 0)

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