add_x_axis: Configure a chart's x- and y-axis

Description Usage Arguments

View source: R/axes.R

Description

The x-axis and y-axis options.

Usage

1
2
3
4
5
add_x_axis(chart, title = NULL, labels = TRUE, grid = TRUE, offset = 30,
  position = "end")

add_y_axis(chart, title = NULL, labels = TRUE, grid = TRUE, offset = 40,
  position = "start")

Arguments

chart

A chartist chart.

title

A character string specifying the axis title, defaults to NULL in which case the data column name is used as the axis title.

labels

If TRUE, labels are shown on the x-axis, defaults to TRUE.

grid

If TRUE, the x-axis grid lines are shown, defaults to TRUE.

offset

A numeric value specifying the offset of the axis labels, the x-axis offset defaults to 30 and the y-axis offset defaults to 40.

position

One of "start" or "end", the x-axis position defaults to "end" and the y-axis position defaults to "start".


nteetor/chartisan documentation built on May 29, 2019, 7:19 a.m.