uv_axis: Customise chart axis

Description Usage Arguments See Also Examples

View source: R/config.R

Description

Customise the chart axis.

Usage

1
2
uv_axis(p, opacity, ticks, subticks, padding, minor, strokecolor, fontfamily,
  fontsize, fontweight, showticks, showsubticks, showtext)

Arguments

p

a uvcharts object.

opacity

opacity of the axis lines drawn for reference, defaults to 1.

ticks

number of major ticks on the measure axis.

subticks

number of minor ticks on the measure axis.

padding

any CSS size.

minor

length of the minor ticks towards the label.

strokecolor

color of axis lines, any Color Code or Color String or none. Defaults to #000000.

fontfamily

any font, defaults to Arial.

fontsize

font size. Defaults to 11.

fontweight

font weight, defaults to bold.

showticks

show ticks flag, TRUE or FALSE, defaults to the former.

showsubticks

show subticks flag, TRUE or FALSE, defaults to the former.

showtext

show text flag, TRUE or FALSE, defaults to the former.

See Also

Official docs

Examples

1
2
3
4
mtcars %>%
  uv_charts(qsec) %>%
  uv_add(mpg) %>%
  uv_axis(opacity = 0.6, ticks = 10, strokecolor = "blue", showtext = FALSE)

JohnCoene/uvcharts documentation built on May 7, 2019, 11:59 a.m.