Dear David, You could put the numbers on the graph with geom_text()
HTH, Thierry ------------------------------------------------------------------------ ---- ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance Gaverstraat 4 9500 Geraardsbergen Belgium tel. + 32 54/436 185 [EMAIL PROTECTED] www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens David Hajage Verzonden: zaterdag 15 november 2008 14:03 Aan: hadley wickham CC: R Help Onderwerp: Re: [R] ggplot2 - two or more axis Thank you very much for the answer. I have seen very often the number of subject at risk on survival graph (see my pdf file). It is very easy to plot the curve with geom_step(), but is there a better way to show the number of subjects at risk at each time ? Thank you for your advice. 2008/11/14 hadley wickham <[EMAIL PROTECTED]> > Hi David, > > > 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. > > Regards, > > Hadley > > -- > http://had.co.nz/ > Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document. The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document. ______________________________________________ [email protected] 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.

