ft_theme: ggplot2 theme for FT graphs.

Description Usage Arguments Examples

View source: R/ft_theme.R

Description

ggplot2 theme for FT graphs.

Usage

1
2
ft_theme(legend_right = FALSE, base_size = 12, base_family = "",
  base_line_size = base_size/170, base_rect_size = base_size/170)

Arguments

legend_right

Logical indicating whether legend should be placed to the right of the plot. If FALSE, the default, legend is positioned above the plot.

base_size

The base font size

base_family

Font family

base_line_size

Default

base_rect_size

Default

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)
ggplot(mpg, aes(displ, hwy, color = class)) +
  geom_point() +
  ft_theme()

ggplot(mpg, aes(displ, hwy)) +
  geom_point() +
  facet_wrap(vars(class)) +
  ft_theme()

Financial-Times/ftplottools documentation built on Nov. 8, 2021, 5:11 p.m.