b_yaxis: Customise y axis

Description Usage Arguments Examples

Description

Cutomise y and y2 axis.

Usage

1
2
b_yaxis(p, axis = "y", show = TRUE, center = NULL, inner = FALSE,
  inverted = FALSE, min = NULL, max = NULL, ...)

Arguments

p

an object of class billboard.

axis

axis to customise.

show

set to show.

center

customise center.

inner

set to show inside chart.

inverted

set to invert axis.

min, max

minimum and maximum.

...

any other parameter.

Examples

1
2
3
4
5
6
7
8
9
mtcars %>%
  b_board() %>%
  b_spline(mpg) %>%
  b_spline(drat, axis = "y2") %>%
  b_xlabel("Model") %>%
  b_ylabel("Miles per galon") %>%
  b_ylabel("Rear axle ratio", axis = "y2") %>%
  b_yaxis("y2", inner = TRUE) %>%
  b_xaxis(padding = list(left = 1, right = 2)) # add padding to avoid overlap

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