Learn R Programming

rAmCharts (version 1.1.1)

initialize,StockPanel-method: Initialize a StockPanel

Description

Initialize a StockPanel

Usage

## S3 method for class 'StockPanel':
initialize(.Object, drawOnAxis, stockGraphs, stockLegend,
  ...)

stockPanel(drawOnAxis, stockGraphs, stockLegend, ...)

setDrawOnAxis(.Object, valueAxis = NULL, ...)

## S3 method for class 'StockPanel': setDrawOnAxis(.Object, valueAxis = NULL, ...)

setStockGraphs(.Object, stockGraphs)

## S3 method for class 'StockPanel': setStockGraphs(.Object, stockGraphs)

addStockGraph(.Object, stockGraph = NULL, ...)

## S3 method for class 'StockPanel': addStockGraph(.Object, stockGraph = NULL, ...)

setStockLegend(.Object, stockLegend = NULL, ...)

## S3 method for class 'StockPanel': setStockLegend(.Object, stockLegend = NULL, ...)

Arguments

.Object
StockPanel.
drawOnAxis
ValueAxis. Specifies on which value axis user can draw trend lines. Set drawingIconsEnabled to true if you want drawing icons to be visible. First value axis will be used if not set here. You can use a reference to
stockGraphs
list of AmGraph. Each element must be have been created with stockGraph(*)
stockLegend
list of AmLegend. Each element must be have been created with stockLegend(*)
...
Other properties...
valueAxis
ValueAxis
stockGraph
AmGraph, created with stockGraph(...)

Value

  • (updated) StockPanel with given properties.

Functions

  • stockPanel:

Examples

Run this code
new("StockPanel")
stockPanel()
setDrawOnAxis(.Object = stockPanel(), valueAxis = valueAxis())
setDrawOnAxis(.Object = stockPanel(), valueAxis = "valueAxis1")
stockGraphs <- list(stockGraph(comparable = TRUE), stockGraph(comparable = FALSE))
setStockGraphs(.Object =  stockPanel(), stockGraphs = stockGraphs)
stockPanel(stockGraphs = stockGraphs)
addStockGraph(.Object = stockPanel(), comparable = FALSE)
addStockGraph(.Object = stockPanel(), stockGraph = stockGraph(TEST = FALSE))
setStockLegend(.Object = stockPanel(), stockLegend = stockLegend())

Run the code above in your browser using DataLab