ordata <- data.frame(a=1:10,b=11:20)col <- quote(b) # parameter to belowggplot(data) + geom_point( structure(list(x=quote(a), y= col ), class= "uneval"))
aese <- function(...) structure(eval(substitute(list(...))), class="uneval")ggplot(data) + geom_point( aese(x=quote(a), y= col ))
There is aes_string
col <- "b"
ggplot(data) + geom_point(aes_string(x="a", y=col))
> -s
--
Brian S. Diggs, PhD
Senior Research Associate, Department of Surgery
Oregon Health & Science University
If you prefer not to receive future e-mail offers for products or services from Key
send an e-mail to mailto:DNERe...@key.com with 'No Promotional E-mails' in the SUBJECT line.
You have to specify it as the returned value from the summary.
ggplot ( data = tst.data,aes(x,y)) + geom_point(alpha = .3) +
stat_summary(aes(group=1),fun.y = "mean",geom = "line") +
stat_summary(aes(group=1, label=ggplot2::dollar(..y..)), fun.y = "mean",
geom = "text")
I don't know why you have to have ggplot2::dollar rather than just
dollar, though.
> Thanks again.
>
>
>
> Adam Loveland
>
> Adam Loveland
> 216-689-5409
> 1Key
>
> This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information. 127 Public Square, Cleveland, OH 44114
> If you prefer not to receive future e-mail offers for products or services from Key
> send an e-mail to mailto:DNERequests...@public.gmane.org with 'No Promotional E-mails' in the
> SUBJECT line.
>