theme_fte: Themes for ggplot2 Graphs

Description Usage Arguments Value Author(s) Examples

Description

Theme for plotting with ggplot2.

Usage

1
2
3
theme_fte(legend = "none", legend_title = FALSE, base_size = 12,
  horizontal = TRUE, base_family = "", colors = c("#F0F0F0", "#D9D9D9",
  "#60636A", "#525252"))

Arguments

legend

enables to set legend position, default is "none".

legend_title

will the legend have a title? Defaults is FALSE.

base_size

overall font size. Default is 13.

horizontal

logical. Horizontal axis lines?

base_family

a nmae for default font family.

colors

default colors used in the plot in the following order: background, lines, text, and title.

Value

The theme.

Author(s)

Daniel Marcelino [aut, cre]

Examples

1
2
3
4
5
6
7
8
9
qplot(1:10, (1:10)^3) + theme_fte()


mycolors = c("wheat",  "#C2AF8D",  "#8F6D2F", "darkred")
qplot(1:10, (1:10)^3) +
 theme_fte(colors=mycolors)

# Check that it is a complete theme
attr(theme_fte(), "complete")

SciencesPo documentation built on May 29, 2017, 9:28 p.m.