[R] ggplot2 - two or more axis
h.wickham at gmail.com
Fri Nov 14 19:43:51 CET 2008
> I'm trying to learn how to make a plot with the amazing package ggplot2.
> I was wondering if it was possible to draw 2 (or more) x (or y) axis in the
> same graph. For example :
> - I want to show two informations at each x coordinate : a survival curve,
> I want to show the time (0, 12 and 24 months) and the number of subject at
> risk at each time.
> - I want to draw two curves that don't have the same unit
Unfortunately, the capability is currently unavailable in ggplot2 and
is unlikely to ever be available because I believe it is a
fundamentally inaccurate means of presenting data. However, in the
next version it will be much easier to created faceted displays with
varying scales, which should be a better solution for many of these
types of problems.
More information about the R-help