theme_fira: Fira theme

Description Usage Arguments Value See Also Examples

View source: R/theme_fira.R

Description

This theme uses Mozilla's Fira Sans as its font. Save to pdf using firaSave().

Usage

1
theme_fira(family = "Fira Sans")

Arguments

family

Change the font family. Defaults to Fira Sans

Value

ggplot theme

See Also

firaSave

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(ggplot2)

ggplot(mtcars, aes(x = mpg*0.43, y = wt*0.4535924, colour = factor(cyl))) +
  geom_point(size = 2) +
  labs(title = "Car weight vs efficiency",
       subtitle = "Using sensible metrics",
       x = "Efficiency (km/l)",
       y = "Weight (1000 kg)",
       colour = "Cylinders") +
  theme_fira() +
  scale_colour_fira()

vankesteren/firatheme documentation built on April 16, 2021, 4:12 a.m.