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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.r
\name{calc_element}
\alias{calc_element}
\title{Calculate the element properties, by inheriting properties from its parents}
\usage{
calc_element(
element,
theme,
verbose = FALSE,
skip_blank = FALSE,
call = caller_env()
)
}
\arguments{
\item{element}{The name of the theme element to calculate}
\item{theme}{A theme object (like \code{\link[=theme_grey]{theme_grey()}})}
\item{verbose}{If TRUE, print out which elements this one inherits from}
\item{skip_blank}{If TRUE, elements of type \code{element_blank} in the
inheritance hierarchy will be ignored.}
}
\description{
Calculate the element properties, by inheriting properties from its parents
}
\examples{
t <- theme_grey()
calc_element('text', t)
# Compare the "raw" element definition to the element with calculated inheritance
t$axis.text.x
calc_element('axis.text.x', t, verbose = TRUE)
# This reports that axis.text.x inherits from axis.text,
# which inherits from text. You can view each of them with:
t$axis.text.x
t$axis.text
t$text
}
\keyword{internal}
|