[R] mgp.axis.labels

From: Judith Flores <juryef_at_yahoo.com>
Date: Wed, 06 Apr 2011 14:07:58 -0700


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



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 Wed 06 Apr 2011 - 21:12:41 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 Wed 06 Apr 2011 - 21:30:27 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