
Custom Label Formatting for ggplot2: American Marketing Association Style
ama_labs.RdThis function provides custom label formatting for ggplot2 based on the guidelines set by the American Marketing Association.
Usage
ama_labs(
title = NULL,
subtitle = NULL,
caption = NULL,
x = NULL,
y = NULL,
fill = NULL,
color = NULL,
...
)Arguments
- title
Plot title.
- subtitle
Plot subtitle.
- caption
Plot caption.
- x
X-axis label.
- y
Y-axis label.
- fill
Fill legend title.
- color
Color legend title.
- ...
Additional arguments to be passed to
ggplot2::labs().
Examples
if (FALSE) { # \dontrun{
ggplot(mtcars, aes(mpg, wt)) + geom_point() +
ama_labs(title = "Sample Plot") +
ama_theme()
} # }