A theme inspired by coffee

theme_coffee(
  base_size = 14,
  base_family = "Cooper Hewitt",
  header_family = "Cooper Hewitt",
  axis = "",
  ticks = "",
  grid = ""
)

Arguments

base_size

numeric. Base font size in pt

base_family

character. Base font family

header_family

character. Font family for title and subtitle

axis

character. Where to draw an axis line

ticks

character. Where to draw axis ticks

grid

character. Where to draw grid lines

Value

An object of class theme

See also

For more details see the 'theme' vignette: vignette("theme", package = "ggcharts")

Examples

library(ggplot2) library(dplyr) scatter <- ggplot(mtcars, aes(hp, mpg)) + geom_point(color = "#F4C95D") scatter + theme_coffee()
scatter + theme_coffee(grid = "XY")
scatter + theme_coffee(axis = "xy", ticks = "xy")
bar_chart(ggplot2::diamonds, cut, bar_color = "#F4C95D") + theme_coffee(axis = "y", grid = "Y")
column_chart(ggplot2::diamonds, cut, bar_color = "#F4C95D") + theme_coffee(axis = "x", grid = "X")
ggcharts::biomedicalrevenue %>% filter(company == "Roche") %>% ggplot(aes(year, revenue)) + geom_line(color = "#F4C95D", size = 1) + scale_y_continuous(expand = expand_scale(c(0, .05))) + theme_coffee(grid = "X", axis = "x", ticks = "x")
#> Warning: `expand_scale()` is deprecated; use `expansion()` instead.