ama_theme.Rd
This function provides a custom theme for ggplot2 following the guidelines set by the American Marketing Association.
Base font size.
Font family. Use "sans" for Arial and "serif" for Times New Roman.
Title font size as a relative value.
Axis title font size as a relative value.
Legend title font size as a relative value.
Legend text font size as a relative value.
Axis text font size as a relative value.
Additional theme elements to be passed to ggplot2::theme()
.
A ggplot2 theme.
if (FALSE) {
library(ggplot2)
# Using Arial font
ggplot(mtcars, aes(mpg, wt)) + geom_point() + ama_theme()
# Using Times New Roman font
ggplot(mtcars, aes(mpg, wt)) + geom_point() + ama_theme(base_family = "serif")
}