File: label-parsed-ov.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 (21 lines) | stat: -rw-r--r-- 596 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
\name{label_parsed}
\alias{label_parsed}
\title{Label facets with parsed label.}
\author{Hadley Wickham <h.wickham@gmail.com>}

\description{
Parses the facet label, as if
}
\usage{label_parsed(variable, value)}
\arguments{
\item{variable}{variable name passed in by facetter}
\item{value}{variable value passed in by facetter}
}


\seealso{\code{\link{plotmath}}}
\examples{mtcars$cyl2 <- factor(mtcars$cyl, labels = c("alpha", "beta", "gamma"))
qplot(wt, mpg, data = mtcars) + facet_grid(. ~ cyl2)
qplot(wt, mpg, data = mtcars) + facet_grid(. ~ cyl2, 
labeller = label_parsed)}
\keyword{hplot}