Learn R Programming

rAmCharts (version 1.1.1)

addSubData: Add subData for drilldrown

Description

This method allows to add subdata for a chart with drilldown.

Usage

addSubData(.Object, categoryIDs, data)

## S3 method for class 'AmChart,numeric,data.frame': addSubData(.Object, categoryIDs, data)

Arguments

.Object
object of class AmChart.
categoryIDs
object of class numeric (vector or simple value). Indicates corresponding indice(s) of the dataProvider where to add the data.
data
object of class data.frame. Data to draw at the second level, after clicking on the serial / column.

Methods (by class)

  • .Object = AmChart,categoryIDs = numeric,data = data.frame:

See Also

Other AmChart methods: addArrow, addArrow,AmChart-method; addAxe, addAxe,AmChart-method; addGraph, addGraph,AmChart-method; addGuide,AmChart-method; addLabel, addLabel,AmChart-method; addSegment, addSegment,AmChart,numeric-method; addTitle, addTitle,AmChart-method; addTrendLine, addTrendLine,AmChart-method; addValueAxes, addValueAxes,AmChart-method; setAllLabels, setAllLabels,AmChart,list-method; setArrows, setArrows,AmChart-method; setAxes, setAxes,AmChart,list-method; setBalloon, setBalloon,AmChart-method; setCategoryAxis, setCategoryAxis,AmChart-method; setCategoryField, setCategoryField,AmChart,character-method; setChartCursor, setChartCursor,AmChart-method; setChartScrollbar, setChartScrollbar,AmChart-method; setCreditsPosition, setCreditsPosition,AmChart,character-method; setDataProvider,AmChart,data.frame-method; setExport, setExport,AmChart-method; setGraph,AmChart-method; setGraphs, setGraphs,AmChart,list-method; setGuides, setGuides,AmChart,list-method; setLegend, setLegend,AmChart-method; setSubChartProperties, setSubChartProperties,AmChart-method; setTitles, setTitles,AmChart,list-method; setTrendLines, setTrendLines,AmChart,list-method; setValueAxes, setValueAxes,AmChart,list-method; setValueAxis,AmChart-method

Examples

Run this code
library(pipeR)
amChart(dataProvider = data.frame(a = 1:5, b = 6:10)) %>>%
addSubData(3, data.frame(a = 1:10, b = 11:20))

Run the code above in your browser using DataLab