[R] X-axis range
Peter Alspach
Peter.Alspach at plantandfood.co.nz
Tue Sep 15 06:50:09 CEST 2009
Tena koe Chris
?axis
e.g.,
plot(yourX, yourY, xlim=c(1998,2008), xaxt='n')
axis(1, c(1998,2003,2008))
HTH ....
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Chris Li
> Sent: Tuesday, 15 September 2009 3:22 p.m.
> To: r-help at r-project.org
> Subject: [R] X-axis range
>
>
> Hi all,
>
> I would like to change the x-axis of my graphs from year 1998
> to 2008 with an interval of 5 (i.e. 1998, 2003, 2008). Any
> help would be greatly appreciated.
>
> http://www.nabble.com/file/p25447219/model_hydrographs.txt
> model_hydrographs.txt
> http://www.nabble.com/file/p25447219/bore_sample.txt
> bore_sample.txt
> http://www.nabble.com/file/p25447219/46871a%2Bcalibration%2Bscript.R
> 46871a+calibration+script.R
>
> Cheers,
> Chris
> --
> View this message in context:
> http://www.nabble.com/X-axis-range-tp25447219p25447219.html
> Sent from the R help mailing list archive at Nabble.com.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
More information about the R-help
mailing list