Re: [R] Converting qqplot2 qplot() to grammar?

From: B. Bogart <bbogart_at_sfu.ca>
Date: Tue, 13 May 2008 11:19:37 -0700

Thanks Hadley,

I did not even consider needing the aes() function.

It does seem to be behaving properly now.

> Could you provide a fuller description of what you're trying to do?

Now that this part is working there are two more aspects of the plot I would like to remove: (in order of importance)

> Just in R at the moment - see ?opts.

Hmm, I just get the generic R help for ggplot that says go to the website for complete documentation.

That's using R 2.6.2 (2008-02-08).

Thanks for your help,
B. Bogart

hadley wickham wrote:
> You're missing one thing. You want:
>
> layer(data = somdf, geom = "tile", aes(fill=rgb))
>
> (i.e. there's an aes function wrapped around the fill). I'd probably
> use a few more of the built in defaults to get:
>
> geom_tile(aes(fill = rgb))
>
>

>>  The other issue I'm having is that the above seems to create multiple
>>  plots, another, apparently identical, plot gets drawn after I call
>>  dev.off(). I have no idea why this would be so.

>
>
>>  Setting name and breaks to " " seems like a hack to get rid of the axis
>>  stuff, is there a better way?

>
> Not at the moment.
>
>>  Oh, and I can't find documentation for opts() on the ggplot2 website,
>>  where is it available?

>

>
> Hadley
>
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
cropped.png ggplot.png
Received on Tue 13 May 2008 - 19:50:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 22 May 2008 - 00:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive