Chih Chu
I'm not sure what you mean. The following shows the axes evenly spaced
for me (R 2.7.0 on Windows device):
plot(1:10, axes=F)
axis(1)
axis(2)
axis(3)
axis(4)
axis(1, c(1,10), c('',''), tck=0)
axis(2, c(1,10), c('',''), tck=0)
axis(3, c(1,10), c('',''), tck=0)
axis(4, c(1,10), c('',''), tck=0)
However, axis() does have the pos argument to allow one to change the
position at which the axis line is drawn. See ?axis.
HTH ......
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of chih chu
> Sent: Friday, 2 May 2008 3:44 p.m.
> To: r-help at r-project.org
> Subject: [R] axis 1 and axis 2 margin
>
> Hi,
> I am using axis() to plot axis 1 and axis 2. but now when I used
> axis(side=1,....) and axis(side=2,.....), there's a big
> margin between these two axis. does anybody have any idea
> about how to shrink the margin between these two axis.
> basically, I want to move axis 1 left so that when I plot
> axis 3, the margin between axis 1 and 2 and margin between
> axis 1 and 4 are the same. like this |__| insead of | __| .
> any help will be greatly appreciated.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
The contents of this e-mail are privileged and/or confidential to the named
recipient and are not to be used by any other person and/or organisation.
If you have received this e-mail in error, please notify the sender and delete
all material pertaining to this e-mail.