plot_group_vol_time: Quickly plot faceted volume of groups over time

View source: R/plot_group_vol_time.R

plot_group_vol_timeR Documentation

Quickly plot faceted volume of groups over time

Description

Quickly plot faceted volume of groups over time

Usage

plot_group_vol_time(
  df,
  group_var = group,
  date_var = date,
  unit = c("day", "week", "month", "quarter", "year"),
  nrow = 2
)

Arguments

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

Value

ggplot object of facetted bar charts


jpcompartir/JPackage documentation built on March 20, 2023, 4 a.m.