initialize,AmGraph-method | R Documentation |
To create an AmGraph, you can use the usual methode Initialize or the constructor. You can update properties with setters.
## S4 method for signature 'AmGraph' initialize( .Object, animationPlayed = FALSE, balloonText, title, type, valueField, ... ) amGraph(animationPlayed = FALSE, balloonText, title, type, valueField, ...) graph(animationPlayed = FALSE, balloonText, title, type, valueField, ...) setBalloonText(.Object, balloonText) ## S4 method for signature 'AmGraph,character' setBalloonText(.Object, balloonText) ## S4 method for signature 'AmGraph,character' setTitle(.Object, title) ## S4 method for signature 'AmGraph,character' setType(.Object, type) setValueField(.Object, valueField) ## S4 method for signature 'AmGraph,character' setValueField(.Object, valueField)
.Object |
AmGraph. |
animationPlayed |
|
balloonText |
|
title |
|
type |
|
valueField |
|
... |
other properties of AmGraph. See http://docs.amcharts.com/3/javascriptcharts/AmGraph. |
An object of class AmGraph with the given properties.
# --- method 'initialize' new("AmGraph", valueField = "value") # constructor amGraph(balloonText = "My text") ## Not run: amGraph(balloonText = "balloonText", "type" = "column", title = "myGraph!", valueField = "value", animationPlayed = TRUE, other = TRUE) ## End(Not run) amGraph(balloonText = "some text") # --- shortcut constructor graph(balloonText = "balloonText", "type" = "column", valueField = "value", animationPlayed = TRUE) # --- update 'balloonText' setBalloonText(.Object = amGraph(), balloonText = "performance") # --- update 'title' setTitle(.Object = amGraph(), title = "Power") # --- update 'type' setType(.Object = amGraph(), type = "type") # --- update valueField setValueField(.Object = amGraph(), valueField = "score")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.