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
|
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{theme_update}
\alias{theme_get}
\alias{theme_set}
\alias{theme_update}
\title{Get, set and update themes.}
\usage{
theme_update(...)
theme_get()
theme_set(new)
}
\arguments{
\item{...}{named list of theme settings}
\item{new}{new theme (a list of theme elements)}
}
\description{
Use \code{theme_update} to modify a small number of elements of the current
theme or use \code{theme_set} to completely override it.
}
\examples{
qplot(mpg, wt, data = mtcars)
old <- theme_set(theme_bw())
qplot(mpg, wt, data = mtcars)
theme_set(old)
qplot(mpg, wt, data = mtcars)
old <- theme_update(panel.background = element_rect(colour = "pink"))
qplot(mpg, wt, data = mtcars)
theme_set(old)
theme_get()
qplot(mpg, wt, data=mtcars, colour=mpg) +
theme(legend.position=c(0.95, 0.95), legend.justification = c(1, 1))
last_plot() +
theme(legend.background = element_rect(fill = "white", colour = "white", size = 3))
}
\seealso{
\code{\link{\%+replace\%}} and \code{\link{+.gg}}
}
|