SOmething like this should do it for you: x <- seq(as.Date('1990-1-1'), as.Date('2030-1-1'), by='1 year') plot(x,runif(length(x))) axis(1, at=as.Date('2008-1-1'), label='2008', las=2)
On Sun, Mar 29, 2009 at 5:32 PM, Junjie Zhang <thuja...@hotmail.com> wrote: > > Hi there, > > > > I have a yearly data from 1990-2030. The tick marks only show every five > years. I want to add another tick mark at 2008 since data beyond that are > predicted. How can I just add one tick mark to the X axis? Thank you. > > > > Best, > > Jacky > > _________________________________________________________________ > Express your personality in color! Preview and select themes for Hotmail®. > > GTX_WL_HM_express_032009#colortheme > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help@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. > > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ R-help@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.