[R] Scaling x axis

Duncan Murdoch murdoch.duncan at gmail.com
Thu Feb 25 16:28:12 CET 2016

On 25/02/2016 7:31 AM, Fabio Monteiro wrote:
> Hi
> i'm trying to plot my data in R and i can't manage to scale the x axis.
> My x axis are dates, months and years, and when I plot I only have the x
> axis like this (2002, 2004, 2006, 2008, 2010).
> I whant every date in the axis not only those years, i want to see every
> point with the respectively date in the axis.
> How can I do that?

Plot it with axes = FALSE, and then add each axis using the Axis() (or 
axis() or axis.Date() or...) function.

Duncan Murdoch

More information about the R-help mailing list