Learn R Programming

rAmCharts (version 1.1.1)

setTrendLines: Setter for trendLines

Description

Setter for trendLines

Usage

setTrendLines(.Object, trendLines)

## S3 method for class 'AmChart,list': setTrendLines(.Object, trendLines)

Arguments

.Object
object of class AmChart.
trendLines
object of class list. Each element must be of class TrendLine.

Value

  • The updated object of class AmChart.

Methods (by class)

  • .Object = AmChart,trendLines = list:

See Also

AmChart S4 class

TrendLine 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; setLegend, setLegend,AmChart-method; setSubChartProperties, setSubChartProperties,AmChart-method; setTitles, setTitles,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; setLegend, setLegend,AmChart-method; setSubChartProperties, setSubChartProperties,AmChart-method; setTitles, setTitles,AmChart,list-method; setValueAxes, setValueAxes,AmChart,list-method; setValueAxis,AmChart-method

Examples

Run this code
trendLines <- list(trendLine(initialValue = 1, finalValue = 5),
                   trendLine(initialValue = 7, finalValue = 19))
setTrendLines(.Object = amChart(), trendLines = trendLines)
amChart(trendLines = trendLines) # Equivalent

Run the code above in your browser using DataLab