ggdotchart | R Documentation |
ggplot version of base::dotchart
ggdotchart(v, threshold = NULL)
v |
A named vector, e.g., a table |
threshold |
A numeric value. Values in v that are greater than this will have different colors and shapes |
Uses theme_minimal, and no axis labels.
a ggplot object
## Not run:
if(interactive()){
ggdotchart(table(mtcars$cyl))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.