Cutomise y and y2 axis.

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

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