[R] ggplot2 scale relation free
hadley wickham
h.wickham at gmail.com
Fri Oct 17 22:19:17 CEST 2008
Hi Stephen,
Thanks for the kind words about ggplot2 :)
The next version of ggplot2 will implement the equivalent of scale
relation free - I've just finished writing the bulk of the code and
now I'm getting all the edge cases working. However, what you
describe sounds like you want multiple scales on a single plot - and
that's not something that ggplot is likely to ever support. However,
it's relatively easy to rescale the variables yourself (provided you
have some consistent way of doing so), and if you have a concrete
example I'd be happy to show you how.
Hadley
On Fri, Oct 17, 2008 at 3:12 PM, stephen sefick <ssefick at gmail.com> wrote:
> I don't know if there is a way to use the scale relation free argument
> in ggplot2 like in lattice. I have a feeling that there is not, but I
> would like to make a plea for this feature. It would be nice to be
> able to plot Total Inorganic Nitrogen Total Phosphorus and the ratio
> of the two- the numbers on the axis are not related, but the previous
> two are surely related to the last (this ratio has been suggested to
> show nutrient limitation, but there is the possibility that the
> concentrations of the two constituents are high enough where the ratio
> is not that meaningful). Or maybe when particulate organic carbon is
> related to macroinvertebrate density with scales as divergent as 1mg/L
> to 1000insects/m^2 . The good parts about base graphics are that you
> can do anything you want to even if it is wrong, but I'm responsible
> for my actions or assumptions. ggplot is a wonderful piece of
> software and most of its defaults are wonderful, but this would be
> useful to me, anyway. Hadley thanks so much for this wonderful piece
> of software.
>
> --
> Stephen Sefick
> Research Scientist
> Southeastern Natural Sciences Academy
>
> Let's not spend our time and resources thinking about things that are
> so little or so large that all they really do for us is puff us up and
> make us feel like gods. We are mammals, and have not exhausted the
> annoying little problems of being mammals.
>
> -K. Mullis
>
> ______________________________________________
> 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.
>
--
http://had.co.nz/
More information about the R-help
mailing list