plot_singbullet: plot_singbullet() #' Custom version of the classical Bullet...

Description Usage Arguments Value Examples

View source: R/plot_singbullet.R

Description

plot_singbullet() #' Custom version of the classical Bullet Graph http://en.wikipedia.org/wiki/Bullet_graph This function plots only the body of a single bullet chart: No text

Usage

1
2
plot_singbullet(df, my_palette = c(low = "#B10318", medium = "#DBA13A", high =
  "#309343"), my_font = "Impact", my_background = "#E2E2E3")

Arguments

df:

data.frame with 1 rows and the following 7 columns measure : label of what's being measured target : the target value for the measure value : the actual value of the measure n : Sample size

Value

ggplot object

Examples

1
2
3
4
5
6
df <- data.frame(measure = c("% enrolled", "% assessed", "% gaining skills"),
target=c(.75, .9, .72),
value=c(232, 50, 36),
n = c(407, 232, 50))

plot_singbullet(df[1, ])

thelayc/laycBullet documentation built on May 27, 2017, 5:29 a.m.