File: update_element.Rd

package info (click to toggle)
r-cran-ggplot2 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,412 kB
  • sloc: sh: 9; makefile: 1
file content (45 lines) | stat: -rw-r--r-- 1,070 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{update_element}
\alias{update_element}
\title{Update theme param}
\usage{
update_element(name, ...)
}
\arguments{
\item{name}{name of a theme element}

\item{...}{Pairs of name and value of theme parameters.}
}
\value{
Updated theme element
}
\description{
Update contents of a theme. (Deprecated)
}
\details{
This function is deprecated. Use \code{\link{\%+replace\%}} or
\code{\link{+.gg}} instead.
}
\examples{
\dontrun{
x <- element_text(size = 15)
update_element(x, colour = "red")
# Partial matching works
update_element(x, col = "red")
# So does positional
update_element(x, "Times New Roman")
# And it throws an error if you use an argument that doesn't exist
update_element(x, noargument = 12)
# Or multiple arguments with the same name
update_element(x, size = 12, size = 15)

# Will look up element if given name
update_element("axis.text.x", colour = 20)
# Throws error if incorrectly named
update_element("axis.text", colour = 20)
}
}
\seealso{
\code{\link{\%+replace\%}} and \code{\link{+.gg}}
}