hi,

first shut down automatic axis in plot with
>plot( ...,axes=F)
then
customize your axis with
?axis 
 axis(side, at = NULL, labels = TRUE, tick = TRUE, line = NA,
          pos = NA, outer = FALSE, font = NA, vfont = NULL,
          lty = "solid", lwd = 1, col = NULL, padj = NA, ...)

you can specify what ever you want
in your case :
side=1 for x axis
at=c(0,6,12,18,24)
labels=c(0,6,12,18,24)

other way to do this with ?par : see parameters xaxp, xaxs, xaxt

best,


yves.
Le lun 17/10/2005 à 16:17, Michela Ballardini a écrit :

> Hello,
> I write to know how can I modify the x axis : when I plot a survival object, 
> R plots a graph with x values = 0, 10, 20, 30 while I want a graph with 
> values 0, 6, 12, 18, 24 in the x axis. How can I do this? In R 2.1.1 version 
> there was "time.inc" in survplot, but in version R 2.2.0 there isn't it!
> 
> I am sorry for my english and I hope that you understand my problem.
> 
> Thank you 
> Mic
> 
> 
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> [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
> 

        [[alternative HTML version deleted]]

______________________________________________
[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
  • [R] x axis Michela Ballardini
    • Re: [R] x axis Yves Magliulo

Reply via email to