Skip to content

Distance between x-axis values and title

4 messages · Viechtbauer Wolfgang (STAT), Brian Ripley, John Kane

#
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,
#
On Mon, 18 Dec 2006, Viechtbauer Wolfgang (STAT) wrote:

            
mgp: looking at An Introduction to R may help you find your way around 
par().
#
--- "Viechtbauer Wolfgang (STAT)"
<Wolfgang.Viechtbauer at STAT.unimaas.nl> wrote:

            
?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))
#
Thanks to all who responded so quickly! Yes, I totally overlooked par(mpg). Exactly what I was looking for.