Learn R Programming

rAmCharts (version 2.0.2)

initialize,ValueAxis-method: Initializes ValueAxis

Description

Creates a ValuesAxis or updates its properties.

Usage

"initialize"(.Object, title, guides, ...)
valueAxis(title, ...)
"setTitle"(.Object, title)

Arguments

.Object
ValueAxis.
title
character.
guides
list of Guide.
...
Other properties (depend of call function)

Examples

Run this code

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)
# ## End(Not run)

valueAxis(title = "Hello !", axisTitleOffset = 12)

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

Run the code above in your browser using DataLab