Modify grid and line elements on both x and y axis
grid(c3, axis, show = TRUE, lines = NULL, ticks = NULL, ...) # S3 method for c3 grid(c3, axis, show = TRUE, lines = NULL, ticks = NULL, ...)
c3 | c3 htmlwidget object |
---|---|
axis | character 'x' or 'y' |
show | boolean |
lines | dataframe with options:
|
ticks | boolean placeholder. Not yet implemented in C3.js |
... | additional options passed to the grid object |
c3
mtcars %>% c3(x = 'mpg', y = 'wt', group = 'cyl') %>% c3_scatter() %>% grid('y') %>% grid('x', show = FALSE, lines = data.frame(value=c(17, 21), text= c('Line 1', 'Line 2')))