summarizeDrilldownSeries: Summarizes Data for a Drilldown Series for Use in Highcharter

Description Usage Arguments Examples

View source: R/summarizeDrilldownSeries.R

Description

This function converts a data frame to a series for use in highcharter

Usage

1
summarizeDrilldownSeries(df, idColumnNameAsText)

Arguments

df

This is the data source to be converted

idColumnNameAsText

This is the name of the column that should be the "id" part of the series

Examples

1
2
3
4
5
6
7
8
9
df <- data.frame(
name = c("Toyota", "Ford", "Volkswagen", "Cats", "Dogs", "Cows", "Sheep", "Pigs", "Apple", "Oranges"),
value = c(4, 2, 2, 4, 3, 1, 2, 1, 4, 2),
id = c(rep("cars",3), rep("animals",5), rep("fruits",2)),
stringsAsFactors = FALSE
)
ds <- summarizeDrilldownSeries(df,"id")
datSeries <- changeToDrilldownSeries(df,"id")
hc <- createDrilldown(df,"id","Things","Drilldown Test","Some additional text here for subtitle")

jsdeherrera/shinyBoots documentation built on May 20, 2019, 2:08 a.m.