-
Notifications
You must be signed in to change notification settings - Fork 229
/
theme_solarized.Rd
43 lines (40 loc) · 1.15 KB
/
theme_solarized.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
\name{theme_solarized}
\alias{theme_solarized}
\title{ggplot color theme based on the Solarized palette}
\usage{
theme_solarized(base_size = 12, base_family = "",
light = TRUE)
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
\item{light}{\code{logical}. Light or dark theme?}
}
\description{
See \url{http://ethanschoonover.com/solarized} for a
description of the Solarized palette.
}
\details{
Plots made with this theme integrate seamlessly with the
Solarized Beamer color theme.
\url{https://github.com/jrnold/beamercolorthemesolarized}.
}
\examples{
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
(qplot(carat, price, data=dsamp, colour=clarity)
+ theme_solarized()
+ scale_colour_solarized("blue"))
## Dark version
(qplot(carat, price, data=dsamp, colour=clarity)
+ theme_solarized(light=FALSE)
+ scale_colour_solarized("blue"))
## With panels
(qplot(carat, price, data=dsamp) + facet_wrap(~ clarity)
+ theme_solarized()
+ scale_colour_solarized("blue"))
}
\seealso{
Other themes: \code{\link{theme_economist}},
\code{\link{theme_excel2003}}, \code{\link{theme_few}},
\code{\link{theme_igray}}
}