Skip to contents

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:

...

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"))
} # }