plotPeriodGroupBars | R Documentation |
Plot Bar Chart by Group Over Time
plotPeriodGroupBars(df, groupVar, measureVar, periodVar, sortFirst, title,
label, legendTitle, fun = mean, dp = 1, colorVector = c("gold",
"orange"), ...)
df |
data frame or tibble. |
groupVar |
field name for groupping in |
measureVar |
field name of the measure in |
periodVar |
field name of the period in |
sortFirst |
value in |
title |
chart's title. |
label |
label for |
fun |
aggregate function; optional, default value is |
dp |
number of decimal places; optional, default value is 1. |
colorVector |
character vector for setting the color of the bars; optional, default value is |
... |
extra arguments go to |
lagendTitle |
title of the legend. |
a ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.