Description Usage Arguments Details Examples
This function creates an overlay plotting a bar chart in ggplot
1 2 3 |
data |
data frame containing data for plotting |
y |
character string specifying column name in data that should be y variable |
x |
character string specifying column name in data that should be x variable |
title |
character string specifying chart title |
sub.title |
character string specifying chart sub title |
flip |
logical indicating whether box chart should be flipped or not |
legend.names |
character string specifying legend names (default is NULL) |
y.title |
character string specifying y-axis title |
x.title |
character string specifying x-axis title |
box.colours |
logical indicating whether boxes should have same colours or not |
min.lim |
numeric setting minimum limit on y-axis |
max.lim |
numeric setting maximum limit on y-axis |
Legend names can be modified through a character vector with same length as number of categorical variables in the x variable. If not set, legend names will take its names from the x variable.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.