Re: [R] axis 1 and axis 2 margin

From: Peter Alspach <PAlspach_at_hortresearch.co.nz>
Date: Fri, 02 May 2008 15:55:04 +1200

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.



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. Received on Fri 02 May 2008 - 04:03:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 02 May 2008 - 05:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive