R6 class defining text and font of labels

## Active bindings

text

character text of the label

font

Font object

## Methods

### Method new()

Create a new Label object.

Labelnew( 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 label 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. #### Returns A new Label object ### Method createPlotFont() Create a ggplot2::element_text directly convertible by ggplot2::theme. #### Usage LabelcreatePlotFont(
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.

#### Returns

An element_text or element_blankobject.

### Method clone()

The objects of this class are cloneable with this method.

#### Usage

Label\$clone(deep = FALSE)

#### Arguments

deep

Whether to make a deep clone.