.buildLabs | R Documentation |
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
)
x |
The character label for the horizontal axis. |
y |
x The character label for the vertical axis. |
color |
The character title for the color scale legend. |
shape |
The character title for the point shape legend. |
size |
The character title for the point size legend. |
fill |
The character title for the color fill legend. |
group |
The character title for the group legend. |
title |
The character title for the plot title. |
subtitle |
The character title for the plot subtitle |
If any argument is NULL
, the corresponding label is not set.
Title and label instructions for ggplot
as a character value.
Kevin Rue-Albrecht
cat(.buildLabs(y = "Title for Y axis", color = "Color label"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.