b_legend: Customise legend

Description Usage Arguments Details Examples

Description

Customise legend

Usage

1
2
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:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mtcars %>%
  b_board(wt) %>%
  b_spline(mpg) %>%
  b_spline(drat, axis = "y2") -> p

p %>%
  b_legend(width = 25, height = 20)

p %>%
  b_legend(FALSE)

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