A ggplot2 theme inspired with the 'hello friend ng' Hugo theme
theme_ng( base_size = 14, base_family = "Cooper Hewitt", header_family = "Cooper Hewitt", axis = "", ticks = "", grid = "" )
base_size |
|
---|---|
base_family |
|
header_family |
|
axis |
|
ticks |
|
grid |
|
An object of class theme
For more details see the 'theme' vignette:
vignette("theme", package = "ggcharts")
library(ggplot2) library(dplyr) scatter <- ggplot(mtcars, aes(hp, mpg)) + geom_point(color = "yellow") scatter + theme_ng()scatter + theme_ng(grid = "XY")scatter + theme_ng(axis = "xy", ticks = "xy")ggcharts::biomedicalrevenue %>% filter(company == "Roche") %>% ggplot(aes(year, revenue)) + geom_line(color = "yellow", size = 1) + scale_y_continuous(expand = expand_scale(c(0, .05))) + theme_ng(grid = "X", axis = "x", ticks = "x")#> Warning: `expand_scale()` is deprecated; use `expansion()` instead.