-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme_publish.Rd
38 lines (34 loc) · 1.02 KB
/
theme_publish.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme_publish.R
\name{theme_publish}
\alias{theme_publish}
\title{ggplot2 theme for scientific publications}
\usage{
theme_publish(base_size = 12, base_family = "", base_linewidth = 0.25, ...)
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
\item{base_linewidth}{base line width for ticks and axes}
\item{\dots}{further arguments to be passed to \code{\link[ggplot2]{theme_bw}}}
}
\description{
Themes set the general aspect of the plot such as the color of the
background, grid lines, the size and color of fonts. This particular theme is
based on the classic dark-on-light ggplot2 \code{\link[ggplot2]{theme_bw}}
and has been used for scientific publications.
}
\examples{
library(ggplot2)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
colour = factor(gear))) + facet_wrap( ~ am)
p
p + theme_publish()
}
\seealso{
\code{\link[ggplot2]{ggtheme}}
\code{\link[ggplot2]{theme_bw}}
}
\author{
Zacharias Steinmetz
}