Skip to contents

ALIEN Inspired Theme

Usage

theme_alien(alien_font = TRUE, ...)

Arguments

alien_font

should theme_alien use Google Font's 'Roboto Condensed'? Default is TRUE.

...

additional parameters to pass to ggplot2::theme()

Value

a ggplot2

theme element

Examples

library(ggplot2)

ggplot(data = data.frame(x = rnorm(50, 0, 1), y = rnorm(50,0,1)), aes(x = x, y = y)) +
  geom_smooth(method = 'lm',
             color = alien_theme_colors["dark"],
             fill =  alien_theme_colors["light"]) +
 geom_point(color =  alien_theme_colors["medium"]) +
 labs(title = 'ALIEN Scatter Plot') +
 theme_alien()
#> `geom_smooth()` using formula = 'y ~ x'


ggplot(mpg, aes(cty)) +
geom_density(aes(fill=factor(cyl)), alpha=0.8) +
  labs(title="Density plot",
       subtitle="City Mileage Grouped by Number of cylinders",
       caption="Source: mpg",
       x="City Mileage",
       fill="# Cylinders") +
  theme_alien()