f_summarise4lollipop: Prepare data for lollipop plots.

Description Usage Arguments Value

Description

f_summarise4lollipop adds information at level (RegionSplit, fYear), and level (RegionSplit, SuppliesSplit, fYear), while keeping all the rows of the data frame. Used in data4plot.

Usage

1
f_summarise4lollipop(data, lollipop_measure = "Rev", showFY)

Arguments

data

a dataframe with column fYear, lollipop_measure, regionSplit, SuppliesSplit

lollipop_measure

a string, such as "Rev" or "Liters". NULL if the plot isn't a lollipop.

showFY

a string vector, such as "All" or c("2017", "2018").

Value

a dataframe with columns RegionSplit, SuppliesSplit, fYear, percentage, measure.


FabienNicol/suppliesdash documentation built on May 6, 2019, 7:04 p.m.