View source: R/plot_group_vol_time.R
plot_group_vol_time | R Documentation |
Quickly plot faceted volume of groups over time
plot_group_vol_time(
df,
group_var = group,
date_var = date,
unit = c("day", "week", "month", "quarter", "year"),
nrow = 2
)
df |
Data frame or tibble |
group_var |
grouping variable e.g. country, cluster, topic etc. |
date_var |
Variable which contains date information (can be datetime too I think) |
unit |
A single unit of time fed into lubridate::floor_date "week", "day", "month","quarter", "year" |
nrow |
How many rows the plot should be shown in |
ggplot object of facetted bar charts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.