label Function (For GPL Guides)
Note: If you are modifying the label for a graphic element (like a bar or point), refer to label Function (For GPL Graphic Elements) .
Syntax
label("label text" ...)
"label text". The text that appears in the label. You can specify multiple strings
by separating the strings with commas (for example, label("This is a ", "long label")
). The
strings are concatenated in the resulting graph.
Description
Specifies a label for a guide (for example, an axis or legend). This is text that is displayed on the resulting graph.
Examples
GUIDE: axis(dim(1), label("Job Category"))
GUIDE: legend(aesthetic(aesthetic.color), label("Gender"))
GUIDE: text.title(label("Sales By Region"))