Quickly plot Suma data with a pre-defined bar chart
1 2 3 |
df |
Data frame containing Suma Data |
xVar |
What variable you'd like to use for the X axis of your plot(s) |
op |
What operation you want to use to get the data |
groupBy |
Optional argument defining how to group data |
filterBy |
Optional argument defining how to filter data |
facetBy |
Optional argument to define faceting your plot |
fillBy |
Optional argument to define the fill of the bars |
yVar |
Optional argument to specify variable you'd like to use fo the Y axis of your plot(s), defaults to "value" |
legend |
Optional argument to decide whether to display legend (default TRUE) |
position |
Optional argument to define position of bars, takes standard ggplot2 geom_bar arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.