Description Usage Arguments Value Examples
Uses the constructor to create the object or update an existing one with the setters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## S4 method for signature 'Label'
initialize(.Object, text, bold, x, y, ...)
label(text, bold, x, y, ...)
setBold(.Object, bold)
## S4 method for signature 'Label,logical'
setBold(.Object, bold)
## S4 method for signature 'Label,character'
setText(.Object, text)
setX(.Object, x)
## S4 method for signature 'Label,numericOrCharacter'
setX(.Object, x)
setY(.Object, y)
## S4 method for signature 'Label,numericOrCharacter'
setY(.Object, y)
|
.Object |
Label. |
text |
|
bold |
|
x |
|
y |
|
... |
other properties of Label. |
(updated) .Object of class Label.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # --- 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.