Hi, I want to define the x-axis in plot as 2,4,6.....100 instead of the default one. How to do that? Many thanks. -- View this message in context: http://r.789695.n4.nabble.com/how-to-change-x-axis-tp4374503p4374503.html Sent from the R help mailing list archive at Nabble.com.
how to change x-axis ?
2 messages · summer, ilai
plot(1:10, xaxt='n') # Don't plot the x-axis axis(1,at=c(2,5,10)) # Construct your own See ?par ?axis
On Thu, Feb 9, 2012 at 2:48 PM, summer <summerwindwrx at hotmail.com> wrote:
Hi, I want to define the x-axis in plot as 2,4,6.....100 instead of the default one. How to do that? Many thanks. -- View this message in context: http://r.789695.n4.nabble.com/how-to-change-x-axis-tp4374503p4374503.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ 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.