This function provides custom label formatting for ggplot2 based on the guidelines set by the American Marketing Association.

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().

Value

Modified labels for a ggplot2 plot.

Examples

if (FALSE) {
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) + geom_point() + 
ama_labs(title = "Sample Plot") +
ama_theme()
}