File: update-labels-kd.rd

package info (click to toggle)
r-cran-ggplot2 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,084 kB
  • sloc: makefile: 3
file content (22 lines) | stat: -rw-r--r-- 537 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
\name{update_labels}
\alias{update_labels}
\title{Update axis/legend labels}
\author{Hadley Wickham <h.wickham@gmail.com>}

\description{
Change the scale names of an existing plot
}
\usage{update_labels(p, labels)}
\arguments{
\item{p}{plot}
\item{labels}{named list of new labels}
}



\examples{p <- qplot(mpg, wt, data = mtcars)
update_labels(p, list(x = "New x"))
update_labels(p, list(x = expression(x / y ^ 2)))
update_labels(p, list(x = "New x", y = "New Y"))
update_labels(p, list(colour = "Fail silently"))}
\keyword{internal}