R6 class defining text
and font
of labels
Methods
Method new()
Create a new Label
object.
Usage
Label$new(
text = "",
font = NULL,
color = NULL,
size = NULL,
fontFace = NULL,
fontFamily = NULL,
angle = NULL,
align = NULL
)
Arguments
text
character text of the label
font
Font
object defining the font of the labelcolor
character defining the color of the label
size
numeric defining the size of the label
fontFace
character defining the font face of the label as defined in helper enum
FontFaces
.fontFamily
character defining the font family of the label
angle
numeric defining the angle of the label
align
character defining the alignment of the label as defined in helper enum
Alignments
.
Method createPlotFont()
Create a ggplot2::element_text
directly convertible by ggplot2::theme
.
Usage
Label$createPlotFont(
color = NULL,
size = NULL,
fontFace = NULL,
fontFamily = NULL,
angle = NULL,
align = NULL
)
Arguments
color
character defining the color of the label
size
numeric defining the size of the label
fontFace
character defining the font face of the label as defined in helper enum
FontFaces
.fontFamily
character defining the font family of the label
angle
numeric defining the angle of the label
align
character defining the alignment of the label as defined in helper enum
Alignments
.