Learn R Programming

rAmCharts (version 2.0.2)

initialize,Label-method: Initializes Label

Description

Uses the constructor to create the object or update an existing one with the setters.

Usage

"initialize"(.Object, text, bold, x, y, ...)
label(text, bold, x, y, ...)
setBold(.Object, bold)
"setBold"(.Object, bold)
"setText"(.Object, text)
setX(.Object, x)
"setX"(.Object, x)
setY(.Object, y)
"setY"(.Object, y)

Arguments

.Object
Label.
text
character, text of a title.
bold
character, specifies if label is bold or not.
x
numeric, label's x position.
y
numeric, label's y position.
...
other properties of Label.

Value

(updated) .Object of class Label.

Examples

Run this code
# --- method initialize
new("Label", x = 10)

# --- constructor
label(text = "bonjour")
label(text = "Male", x = "28%", y = "97%")

# --- update property 'bold'
setBold(.Object = label(), bold = TRUE)

# --- update 'text'
setText(.Object = label(), text = "Bonjour")

# --- update 'x'
setX(.Object = label(), x = 16)

# --- update 'y'
setY(.Object = label(), y = 16)

Run the code above in your browser using DataLab