Description Usage Arguments Value Examples
plot_singbar() #' 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
1 2 | plot_singbar(df, 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_singbar(df[1, ])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.