theme_ng {ggcharts} | R Documentation |
Theme NG
Description
A ggplot2 theme inspired with the 'hello friend ng' Hugo theme
Usage
theme_ng(base_size = 14, base_family = "", axis = "", ticks = "", grid = "")
Arguments
base_size |
|
base_family |
|
axis |
|
ticks |
|
grid |
|
Value
An object of class theme
Author(s)
Thomas Neitmann
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 = "yellow")
scatter + theme_ng()
scatter + theme_ng(grid = "XY")
scatter + theme_ng(axis = "xy", ticks = "xy")
bar_chart(ggplot2::diamonds, cut, bar_color = "darkorange") +
theme_ng(axis = "y", grid = "Y")
column_chart(ggplot2::diamonds, cut, bar_color = "darkorange") +
theme_ng(axis = "x", grid = "X")
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")
[Package ggcharts version 0.2.1 Index]