rAmCharts (version 1.1.2)

initialize,GaugeArrow-method: Initialize a GaugeArrow

Description

Initialize a GaugeArrow

Usage

"initialize"(.Object, alpha = 1, axis, ...)
gaugeArrow(alpha = 1, axis, ...)
setAxis(.Object, axis = NULL, ...)
"setAxis"(.Object, axis = NULL, ...)

Arguments

.Object
GaugeArrow.
alpha
numeric.
axis
GaugeAxis. Axis of the arrow. You can use reference to the axis or id of the axis. If you don't set any axis, the first axis of a chart will be used.
...
Other properties.

Value

(updated) .Object of class GaugeArrow.

Functions

  • gaugeArrow:

Examples

Run this code
new("GaugeArrow")
gaugeArrow(value = 10)
setAxis(.Object = gaugeArrow(), id = "axis1", startValue = 0,
        endValue = 100, valueInterval = 10)
# equivalent to:
axis_obj <- gaugeAxis(id = "axis1", startValue = 0, endValue = 100, valueInterval = 10)
setAxis(.Object = gaugeArrow(), axis = axis_obj)
# or, iff, 'axis_obj' has already been added to the chart
setAxis(.Object = gaugeArrow(), axis = "axis1")
# ---

Run the code above in your browser using DataLab