theme_ubuntu: Personal theme for making plots

Description Usage Arguments Examples

View source: R/ggplot_themes.R

Description

Personal theme for making plots

Usage

1
2
3
4
5
6
7
theme_ubuntu(
  base_size = 12,
  base_family = "Ubuntu",
  base_line_size = base_size/20,
  base_rect_size = base_size/20,
  legend = "none"
)

Arguments

base_size

Base font size

base_family

Base font family

base_line_size

Standard line size

base_rect_size

Standard rectangle size

legend

Default value for theme(legend.position)

Examples

1
2
3
4
5
6
library(ggplot2)

#Don't use Ubuntu font because it may not be loaded
ggplot() +
geom_point(data = mtcars, aes(x = disp, y = mpg)) +
theme_ubuntu(base_family = "sans")

LiamDBailey/baileyetal2021 documentation built on Feb. 10, 2022, 12:34 a.m.