[R] overlay additional axes

From: Dylan Beaudette <dylan.beaudette_at_gmail.com>
Date: Tue 29 Nov 2005 - 08:56:27 EST


I am trying to add an extra labled axis in position 3 (top x-axis), with numbers that do not match up with the existing axes.

Surely this must be possible, and I am just doing it incorectly.

So far I have tried the following:
#make a plot

plot(TIK, type="l", cex=.25, xlim=c(2,32), ylim=c(0,1600))

#try and add a new axis with different numbers in position 3

...obviously the nature of the numbers in both axes is quite different.

is it possible to have the bottom axis (degrees 2Theta) line up with a corosponding top axis of 0.154/(2*sin(TIK[,1]/2*pi/180)) ?

thanks in advance!

Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Nov 29 08:57:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:22 EST