plotGroupBars | R Documentation |
Plot Bar Chart by Group
plotGroupBars(df, groupVar, measureVar, title, label, fun = mean,
dp = 1, mean_line = TRUE, ...)
df |
data frame or tibble. |
groupVar |
field name for groupping in |
measureVar |
field name of the measure 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. |
mean_line |
show line of mean value; optional; default value is |
... |
extra arguments go to |
a ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.