b_bar: Add bar

Description Usage Arguments Examples

Description

Add a bar.

Usage

1
2
b_bar(p, serie, name = NULL, stack = FALSE, axis = "y", width = list(),
  zerobased = TRUE)

Arguments

p

an object of class billboard.

serie

column of values to plot.

name

name of serie.

stack

set to stack.

axis

axis to plot on, see examples.

width

width of bars.

zerobased

set if min or max value will be 0 on bar chart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mtcars %>%
  b_board() %>%
  b_bar(mpg)

mtcars %>%
  b_board() %>%
  b_bar(mpg, stack = TRUE) %>%
  b_bar(drat, stack = TRUE)

mtcars %>%
  b_board() %>%
  b_bar(mpg) %>%
  b_bar(drat, axis = "y2")

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