b_region: Add regions

Description Usage Arguments Examples

Description

Add regions to chart.

Usage

1

Arguments

p

an object of class billboard.

axis

axis to draw region on.

start, end

start and end of region.

class

class of region (CSS).

...

any other parameter.

Examples

1
2
3
4
5
6
mtcars %>%
  b_board(wt) %>%
  b_scatter(mpg) %>%
  b_region(axis = "x", start = 8, end = 20) %>%
  b_region(axis = "x", start = 1, end = 4) %>%
  b_region(axis = "y", start = 30, end = 34)

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