[R] Distance between x-axis values and title

John Kane jrkrideau at yahoo.ca
Mon Dec 18 18:44:49 CET 2006


--- "Viechtbauer Wolfgang (STAT)"
<Wolfgang.Viechtbauer at STAT.unimaas.nl> wrote:

> Dear All,
> 
> I looked at help(par), but could not figure out
> which setting controls the distance between the
> x-axis values and the x-axis title. Any pointer
> would be appreciated!
> 
> Thanks in advance,
> 
 ?mpg probably
Is this what you want 

catb <- c( 1,2,3,4,5,6)
dogb <- c(2,4,6,8,10, 12)
plot(catb,dogb, mgp=c(3,1,0))
# vs
plot(catb,dogb, mgp=c(2,1,0))



More information about the R-help mailing list