tickAxis: Axis Tick Options

Description Usage Arguments Value Examples

View source: R/options.R

Description

Modify axis tick formatting options

Usage

1
2
3
tickAxis(c3, axis, centered = TRUE, format = NULL, culling = NULL,
  count = NULL, fit = TRUE, values = NULL, rotate = 0,
  outer = TRUE, ...)

Arguments

c3

c3 htmlwidget object

axis

character 'x', 'y' or 'y2' axis

centered

boolean (x-axis only)

format

character js function, wrap character or character vector in JS()

culling

boolean or list defining number of ticks 'list(max = 5)' this option effects tick labels (x-axis only)

count

integer number of ticks to display. This effects tick lines and labels

fit

boolean position ticks evenly or set to values (x-axis only)

values

vector. Must match axis format type

rotate

integer degrees to rotate labels (x-axis only)

outer

boolean show axis outer tick

...

additional options passed to axis tick object

Value

c3

Examples

1
2
3
data.frame(a = c(1,2,3,2), b = c(2,4,1,5)) %>%
  c3() %>%
  tickAxis('y', values = c(1,3))

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

Related to tickAxis in c3...