theme_ubuntu: Personalised ggplot theme.

Description Usage Arguments Value Examples

Description

Personal ggplot theme that relies on Ubuntu font.

Usage

1
2
3
theme_ubuntu(base_size = 12, base_family = "Ubuntu",
  base_line_size = base_size/20, base_rect_size = base_size/20,
  tick_margins = 0.8, legend = "none")

Arguments

base_size

Font size.

base_family

Font family.

base_line_size

Line thickness. Relative to font size by default.

base_rect_size

Rectangle line thickness. Relative to font size by default.

tick_margins

Distance of tick values from the ticks. Larger value mean larger distance.

legend

Location of legend. Can be removed ("none"), "bottom", "top", "left", "right".

Value

A ggplot theme

Examples

1
2
3
4
5
6
library(ggplot2)
library(extrafont)

ggplot(iris)+
geom_point(aes(x = Petal.Length, y = Petal.Width))+
theme_ubuntu()

LiamDBailey/MyFuncs documentation built on June 5, 2019, 5:10 p.m.