-
Notifications
You must be signed in to change notification settings - Fork 229
/
theme_wsj.Rd
46 lines (41 loc) · 1.06 KB
/
theme_wsj.Rd
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
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wsj.R
\name{theme_wsj}
\alias{theme_wsj}
\title{Wall Street Journal theme}
\usage{
theme_wsj(
base_size = 12,
color = "brown",
base_family = "sans",
title_family = "mono"
)
}
\arguments{
\item{base_size}{base font size, given in pts.}
\item{color}{The background color of plot. One of \code{'brown',
'gray', 'green', 'blue'}.}
\item{base_family}{base font family}
\item{title_family}{Plot title font family.}
}
\description{
Theme based on the plots in \emph{The Wall Street Journal}.
}
\details{
This theme should be used with \code{\link{scale_color_wsj}()}.
}
\examples{
library("ggplot2")
p <- ggplot(mtcars) +
geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
facet_wrap(~am) +
ggtitle("Diamond Prices")
p + scale_colour_wsj("colors6", "") + theme_wsj()
# Use a gray background instead
p + scale_colour_wsj("colors6", "") + theme_wsj(color = "gray")
}
\references{
\url{https://twitter.com/WSJGraphics}
\url{https://pinterest.com/wsjgraphics/wsj-graphics/}
}
\concept{themes wsj}