Generate ggplot title and label instructions
.buildLabs(
x = NULL,
y = NULL,
color = NULL,
shape = NULL,
size = NULL,
fill = NULL,
group = NULL,
title = NULL,
subtitle = NULL
)
The character label for the horizontal axis.
x The character label for the vertical axis.
The character title for the color scale legend.
The character title for the point shape legend.
The character title for the point size legend.
The character title for the color fill legend.
The character title for the group legend.
The character title for the plot title.
The character title for the plot subtitle
Title and label instructions for ggplot
as a character value.
If any argument is NULL
, the corresponding label is not set.
cat(.buildLabs(y = "Title for Y axis", color = "Color label"))
#> labs(y="Title for Y axis", color="Color label") +