Learn R Programming

rAmCharts (version 2.1.7)

initialize,ValueAxis-method: Initializes ValueAxis

Description

Creates a ValuesAxis or updates its properties.

Usage

# S4 method for ValueAxis
initialize(.Object, title, guides, ...)

valueAxis(...)

# S4 method for ValueAxis,character setTitle(.Object, title)

Arguments

.Object

'>ValueAxis.

title

character.

guides

list of '>Guide.

...

Other properties (depend of call function)

Examples

Run this code
# NOT RUN {
guides <- list(guide(fillAlpha = .4), guide(fillAlpha = .5))
new("ValueAxis", title = "Hello !",  gridThickness = 1, guides = guides)

# }
# NOT RUN {
new("ValueAxis", title = "Hello !", 1) # 1 is not take into account

# If one element of guides is not a Guide object, it shows an error
guides <- list(guide(fillAlpha = .4), b = 1)
new("ValueAxis", title = "Hello !",  gridThickness = 1, guides = guides)
# }
# NOT RUN {
valueAxis(title = "Hello !", axisTitleOffset = 12)

setTitle(.Object = valueAxis(), title = "Hello !")

# }

Run the code above in your browser using DataLab