Skip to content
This repository
tree: affe06d267
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (37 sloc) 1.225 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
\name{theme_economist}
\alias{theme_economist}
\title{ggplot color theme based on the Economist}
\usage{
  theme_economist(base_size = 12, base_family = "",
    horizontal = TRUE, dkpanel = FALSE, stata = FALSE)
}
\arguments{
  \item{base_size}{base font size}

  \item{base_family}{base font family}

  \item{horizontal}{\code{logical}. Horizontal axis lines?}

  \item{dkpanel}{\code{logical} Darker background for panel
  region?}

  \item{stata}{\code{logical} Use RGB values from Stata's
  economist scheme.}
}
\description{
  Style plots similar to those in The Economist.
}
\examples{
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
q <- qplot(carat, price, data=dsamp, colour=clarity)
## Standard
q + theme_economist() + scale_colour_economist()
## Stata colors
q + theme_economist(stata=TRUE) + scale_colour_economist(stata=TRUE)
## Darker plot region
q + theme_economist(dkpanel=TRUE) + scale_colour_economist(stata=TRUE)
## Change axis lines to vertical
(q + theme_economist(horizontal=FALSE)
 + scale_colour_economist() + coord_flip())
}
\seealso{
  Other themes: \code{\link{theme_excel2003}},
  \code{\link{theme_few}}, \code{\link{theme_igray}},
  \code{\link{theme_solarized}}, \code{\link{theme_stata}}
}
Something went wrong with that request. Please try again.