Customise legend

b_legend(p, show = TRUE, position = "bottom", equally = FALSE,
  padding = 0, width = 10, height = 10, ...)

Arguments

p

an object of class billboard.

show

set to show.

position

legend position, see details.

equally

set to all items have same width size.

padding

legend padding.

width, height

dimensions.

...

any other parameter.

Details

Valid position:

  • bottom

  • right

  • inset

Examples

mtcars %>% b_board(wt) %>% b_spline(mpg) %>% b_spline(drat, axis = "y2") -> p p %>% b_legend(width = 25, height = 20) p %>% b_legend(FALSE)