Provides a single entry point for obtaining any supported hvtiPlotR theme.
Usage
hv_theme(
style = c("ppt", "dark_ppt", "light_ppt", "manuscript", "poster"),
...
)Arguments
- style
Character keyword identifying the theme style. Supported values:
"ppt"/"dark_ppt"— dark background, white text (hv_theme_dark_ppt()); default PPT theme"light_ppt"— light/transparent background, black text (hv_theme_light_ppt())"manuscript"— clean white background for journal figures (hv_theme_manuscript())"poster"— medium font for conference posters (hv_theme_poster())
- ...
Additional parameters forwarded to the underlying theme constructor.
Value
A ggplot2::theme() object.
Examples
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) + geom_point()
p + hv_theme("manuscript") # journal figure
p + hv_theme("poster") # conference poster
p + hv_theme("light_ppt") # light-background slide
if (FALSE) { # \dontrun{
# Dark PPT — best viewed against a dark slide background
p + hv_theme("dark_ppt") +
ggplot2::theme(plot.background = ggplot2::element_rect(fill = "navy"))
} # }