createDrilldown: Create a Drilldown Chart Using Highcharter

View source: R/createDrilldown.R

createDrilldownR Documentation

Create a Drilldown Chart Using Highcharter

Description

This function creates a column chart using highcharter.

Usage

createDrilldown(df, idColumnNameAsText, SeriesName, title, subTitle)

Arguments

df

This is the data frame that provides data for the graph.

idColumnNameAsText

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

SeriesName

This is the label of the series in the base level of the drilldown chart

title

This is the title of the chart

subTitle

This is the subtitle of the chart

Examples

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 March 9, 2024, 3:03 a.m.