[R] mgp.axis.labels

Judith Flores juryef at yahoo.com
Wed Apr 6 23:07:58 CEST 2011


Hello,

   I am trying to use mgp.axis labels to locate the x-xis at a different 
distance from the one specified for the y-axis. I know I could use other 
functions such as mtext or axis. But I am curious to know about how to use 
'mgp'axis.labels' from the Hmisc package. I tried following the example in the 
documentation without success.

Sample code:

x<-1:10
y<-1:10

mgp.axis.labels(type='x', mgp=c(5,1,2))
plot(x,y, xlab="X")


   I know I am not really understanding the concept, but some guidance would be 
greatly appreciated.

Thank you,

Judith



More information about the R-help mailing list