[R] Changing X axis values

Amelia Marsh amelia_marsh08 at yahoo.com
Fri Dec 18 12:20:47 CET 2015


Dear Forum,

Assuming I need to plot a graph. In the code I have defined X axis range as 



xlim=c(0,18000)


In the plot, the values visible w.r.t X axis are 0, 5000, 10000, 18000.

To improve the graph clarity, is there any way I can show the values of X axis as 0, 1000, 2000, 3000, 4000, 5000 .......18000 i.e. the values increase by 1000 instead of 5000.

Regards

Amelia



More information about the R-help mailing list