b_xaxis: Customise axis

Description Usage Arguments Examples

Description

Customise charts' axis.

Usage

1
2
b_xaxis(p, show = TRUE, height = NULL, min = NULL, max = NULL,
  padding = NULL, ...)

Arguments

p

an object of class billboard.

show

set to show axis.

height

height of axis.

min, max

minimum and maximum.

padding

axis padding.

...

any other parameter.

Examples

1
2
3
4
5
6
mtcars %>%
  b_board(drat) %>%
  b_bar(cyl) %>%
  b_xlabel("Rear Axle ratio") %>%
  b_ylabel("Number of cylinders") %>%
  b_xaxis(padding = list(left = 1, right = 1))

JohnCoene/billboard documentation built on May 14, 2019, 2:39 p.m.