Learn R Programming

rAmCharts (version 1.1.1)

addTrendLine: Add a trendLine

Description

Add a trendLine

Usage

addTrendLine(.Object, trendLine = NULL, ...)

## S3 method for class 'AmChart': addTrendLine(.Object, trendLine = NULL, ...)

Arguments

.Object
object of class AmChart.
trendLine
object of class TrendLine, default NULL.
...
properties of class TrendLine.

Value

  • The updated object of class AmChart.

Methods (by class)

  • AmChart:

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; 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

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; 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
addTrendLine(.Object = amChart(), initialValue = 1, finalValue = 11)

Run the code above in your browser using DataLab