Gundala Viswanath
2009-Apr-03 03:36 UTC
[R] How to force an point in x-axis to appear in plot
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. - Gundala Viswanath Jakarta - Indonesia
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}}