Description Usage Arguments Value Examples
plot_bullet() #' Custom version of the classical Bullet Graph http://en.wikipedia.org/wiki/Bullet_graph
1 2 3 | plot_bullet(df, my_title = "Overview of JRT results for FY14\n",
my_palette = c(low = "#B10318", medium = "#DBA13A", high = "#309343"),
my_font = "Impact", my_background = "#E2E2E3")
|
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 |
ggplot object
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_bullet(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.