1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
\name{aes_string}
\alias{aes_string}
\title{Generate aesthetic mappings from a string}
\author{Hadley Wickham <h.wickham@gmail.com>}
\description{
Aesthetic mappings describe how variables in the data are mapped to visual properties (aesthetics) of geoms. Compared to aes this function operates on strings rather than expressions.
}
\usage{aes_string(...)}
\arguments{
\item{...}{List of name value pairs}
}
\details{\code{aes_string} is particularly useful when writing functions that create
plots because you can use strings to define the aesthetic mappings, rather
than having to mess around with expressions.}
\seealso{\code{\link{aes}}}
\examples{aes_string(x = "mpg", y = "wt")
aes(x = mpg, y = wt)}
\keyword{internal}
|