theme_modern: Title

Description Usage Arguments Value Examples

View source: R/ggplot2_theme.R

Description

Title

Usage

1
2
theme_modern(base_size = 11, base_family = "Lucida Sans Unicode",
  base_line_size = base_size/22, base_rect_size = base_size/22)

Arguments

base_size

base font size in points (11)

base_family

base font family ('Lucida Sans Unicode')

base_line_size

base line size in units of 22pt (base_size/22)

base_rect_size

base rectangle size in units of 22pt (base_size/22)

Value

a ggtheme()-like object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (interactive()) {
  library(extrafont)
  windowsFonts()
  extrafont::font_import()
  extrafont::loadfonts(device="win")
  windowsFonts()
  ggplot2::ggplot(data = iris, ggplot2::aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
    ggplot2::geom_point() +
    ggplot2::labs(title = 'Iris setosa is separable, but versicolor and verginica are not.') +
    theme_modern()
}

bvancil/peRsonal documentation built on May 25, 2019, 4:01 a.m.