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 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.
>
>
> --
>
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.
2 matches
Mail list logo