[R] Time Series X labels

Rui Barradas ruipbarradas at sapo.pt
Tue Jul 30 18:51:55 CEST 2013


The standard way of customizing the x axis is

plot(..., xaxt = "n")
axis(1, at = where you want the ticks)

Hope this helps,

Rui Barradas

Em 30-07-2013 13:31, Lívio Cipriano escreveu:
> Hi,
> When we plot a Time Series object with a annual frequency, in the X axes
> usually appears mark ticks with an interval of 5 years. How can customize the
> X axes putting a tick for every year?
> Regards
> Lívio Cipriano
> ______________________________________________
> 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