jp_scale_y_c: Modify y-axis components

Description Usage Arguments See Also Examples

View source: R/jp_scale_y_c.R

Description

Customize the y-axis components for a continuous variable in Datawrapper line, bar and column charts, as well as scatter plots.

Usage

1
jp_scale_y_c(chart_id, limits, breaks, log = FALSE, position = "right")

Arguments

chart_id

A string of the Datawrapper chart ID.

limits

A numeric vector of length two to set the lower and upper limits of the axis.

breaks

A numeric vector to set the axis breaks.

log

Defaults to FALSE. If TRUE, turns the axis into a logarithmic scale.

position

A string to set the axis position. Defaults to right. For scatter plots, the argument also accepts zero and off.

See Also

The underlying function: dw_edit_chart

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
jp_scale_y_c(
  chart_id = "abcD3",
  limits = c(0, 200),
  breaks = seq(0, 200, 40),
  position = "left"
)

## End(Not run)

dzulfiqarfr/jpwrapper documentation built on Dec. 20, 2021, 2:20 a.m.