region.c3: Modify region elements on both x and y axis

Description Usage Arguments Value See Also Examples

View source: R/region.R

Description

Regions are defined in multiple axis by passing a single 'data.frame'

Usage

1
2
3
4
region(c3, regions)

## S3 method for class 'c3'
region(c3, regions)

Arguments

c3

c3 htmlwidget object

regions

data.frame with columns listed below. Any columns can be missing but results may be unexpected.

  • axis: character one of 'x', 'y', 'y2'

  • start: numeric but must match defined axis type

  • end: numeric but must match defined axis type

  • class: character css class

Value

c3

See Also

Other c3: RColorBrewer, c3, grid, legend, subchart, tooltip, xAxis, zoom

Examples

1
2
3
4
5
6
iris %>%
 c3(x = 'Sepal_Length', y = 'Sepal_Width', group = 'Species') %>%
 c3_scatter() %>%
 region(data.frame(axis = 'x',
                   start = 5,
                   end = 6))

c3 documentation built on March 16, 2020, 5:07 p.m.

Related to region.c3 in c3...