[R] Plot grouped data: How to change x-axis? (nlme)

Michael A. Miller mmiller3 at iupui.edu
Wed Dec 31 16:00:45 CET 2003


>>>>> "Karl" == Karl Knoblick <karlknoblich at yahoo.de> writes:

    > QUESTION: How can I get tick marks at 0, 6, 12, 18, 24 on
    > the x-axis?

You can pass lattice arguments to plot.  (See the section under
scales in help('xyplot') for lots of details).  For your
purposes, try this:

  plot(GDF, layout=c(3,2), aspect=0.6, xlab="Months",
       scales=list(x=list(at=seq(0,24,6)))
       )

Happy New Year, Mike

-- 
Michael A. Miller                               mmiller3 at iupui.edu
  Imaging Sciences, Department of Radiology, IU School of Medicine




More information about the R-help mailing list