Learn R Programming

rAmCharts (version 1.1.1)

initialize,StockEvent-method: Initialize a StockEvent

Description

Initialize a StockEvent

Usage

## S3 method for class 'StockEvent':
initialize(.Object, backgroundAlpha = 1, stockGraph,
  ...)

stockEvent(backgroundAlpha = 1, stockGraph, ...)

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

## S3 method for class 'StockEvent': setStockGraph(.Object, stockGraph = NULL, ...)

Arguments

.Object
StockEvent.
backgroundAlpha
numeric
stockGraph
AmGraph created with stockGraph(*). This is the graph on which event will be displayed. You can use a reference to the stock graph object or id of the graph.
...
Other properties.

Value

  • (updated) argument .Object of class StockEvent.

Functions

  • stockEvent:

Examples

Run this code
new("StockEvent")
stockEvent()
setStockGraph(.Object = stockEvent(), stockGraph = stockGraph(balloonText = "balloonText"))
setStockGraph(.Object = stockEvent(), stockGraph = "stockGraph1")

Run the code above in your browser using DataLab