[R] How to force an point in x-axis to appear in plot
Rolf Turner
r.turner at auckland.ac.nz
Fri Apr 3 06:08:39 CEST 2009
On 3/04/2009, at 4:36 PM, Gundala Viswanath wrote:
> Dear all,
>
> With this snippet:
> xlim=c(-126000,500000)
>
> in the current plot, the x-axis appear in the following tick marks:
>
> -100000, 100000, 300000, ...etc
>
> How can we force a point where x=0 to appear in the plot?
> Yielding:
>
> -100000, 0, 100000, 300000, ...etc
> ^
>
> in the x-axis tick marks.
axis(side=1,at=0) might give what you want.
But I get a 0 tick mark plotted automatically when I try a simple
example.
This could be due to OS difference I guess.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list