Learn R Programming

rAmCharts (version 1.1.1)

initialize,Label-method: Initialize

Description

Initialize

Usage

## S3 method for class 'Label':
initialize(.Object, text, bold, x, y, ...)

label(text, bold, x, y, ...)

setBold(.Object, bold)

## S3 method for class 'Label,logical': setBold(.Object, bold)

## S3 method for class 'Label,character': setText(.Object, text)

setX(.Object, x)

## S3 method for class 'Label,numeric': setX(.Object, x)

setY(.Object, y)

## S3 method for class 'Label,numeric': setY(.Object, y)

Arguments

.Object
Label.
text
character. Text of a title.
bold
character. Specifies if label is bold or not.
x
numeric. X position of a label.
y
numeric. Y position of a label.
...
Other properties.

Value

  • (updated) .Object of class Label.

Functions

  • label:

Examples

Run this code
new("Label", x = 10)
label(text = "bonjour")
setBold(.Object = label(), bold = TRUE)
setText(.Object = label(), text = "Bonjour")
setX(.Object = label(), x = 16)
setY(.Object = label(), y = 16)

Run the code above in your browser using DataLab