File: complete_theme.Rd

package info (click to toggle)
r-cran-ggplot2 4.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,084 kB
  • sloc: sh: 15; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.R
\name{complete_theme}
\alias{complete_theme}
\title{Complete a theme}
\usage{
complete_theme(theme = NULL, default = theme_get())
}
\arguments{
\item{theme}{An incomplete \link[=theme]{theme} object to complete, or \code{NULL}
to complete the default theme.}

\item{default}{A complete \link[=theme]{theme} to fill in missing pieces.
Defaults to the global theme settings.}
}
\value{
A \link[=theme]{theme} object.
}
\description{
This function takes a theme and completes it so that it can be used
downstream to render theme elements. Missing elements are filled in and
every item is validated to the specifications of the element tree.
}
\examples{
my_theme <- theme(line = element_line(colour = "red"))
complete_theme(my_theme)
}
\keyword{internal}