[R] ggplot questions

hadley wickham h.wickham at gmail.com
Fri Jun 6 20:06:22 CEST 2008


> Does the difference have something to do with ggplot() using ranges
> derived from the data?
> When I modify my original 'test' dataframe with two extra rows as
> defined below, I get expected results in both versions.

Order shouldn't matter - and if it's making a difference, that's a
bug.  But I'm still not completely sure what you're expecting.

> This highlights my next question (warned you ;-) ), I have been
> unsuccessful in trying to define fixed plotting ranges to generate a
> 'template' graphic that I may reuse with successive 'overstory plot'
> data sets. I have used '+ xlim(0, 360) + ylim(0, 16)' but, this seems to
> not have any effect on the final plot layout.

Could you please produce a small reproducible example that
demonstrates this?  It may well be a bug.

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list