Add axis labels.

b_xlabel(p, label, position = "inner-top")

b_ylabel(p, label, position = "inner-top", axis = "y")

Arguments

p

billboard object as returned by b_board.

label

axis label.

position

position of label.

axis

axis to plot on.

Details

Valid position for horizontal:

  • inner-right

  • inner-center

  • inner-left

  • outer-right

  • outer-center

  • outer-left

Valid position for vertical:

  • inner-top

  • inner-middle

  • inner-bottom

  • outer-top

  • outer-middle

  • outer-bottom

Examples

mtcars %>% b_board(wt) %>% b_spline(cyl) %>% b_xlabel("Weight") 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")