Learn R Programming

rAmCharts (version 1.1.1)

setLegend: Setter for Legend

Description

Setter for Legend

Usage

setLegend(.Object, amLegend = NULL, ...)

## S3 method for class 'AmChart': setLegend(.Object, amLegend = NULL, ...)

Arguments

.Object
object of class AmChart.
amLegend
object of class AmLegend, default NULL.
...
properties of AmLegend.

Value

  • The updated object of class AmChart.

Methods (by class)

  • AmChart:

See Also

AmChart S4 class

AmLegend S4 class

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; addSubData, addSubData,AmChart,numeric,data.frame-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; setSubChartProperties, setSubChartProperties,AmChart-method; setTitles, setTitles,AmChart,list-method; setTrendLines, setTrendLines,AmChart,list-method; setValueAxes, setValueAxes,AmChart,list-method; setValueAxis,AmChart-method

Other AmChart setters: addArrow, addArrow,AmChart-method; addAxe, addAxe,AmChart-method; addGraph, addGraph,AmChart-method; addGuide,AmChart-method; addLabel, addLabel,AmChart-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; 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)
# Without chaining
setLegend(.Object = amChart(), amLegend = amLegend(useGraphSettings = TRUE))
setLegend(.Object = amChart(), useGraphSettings = TRUE)

# With chaining
amChart() %>>% setLegend(useGraphSettings = TRUE)
amChart() %>>% setLegend( amLegend(useGraphSettings = TRUE) )

Run the code above in your browser using DataLab