[R] overlay additional axes

Martin Maechler maechler at stat.math.ethz.ch
Wed Nov 30 18:22:51 CET 2005


>>>>> "Dylan" == Dylan Beaudette <dylan.beaudette at gmail.com>
>>>>>     on Mon, 28 Nov 2005 13:56:27 -0800 writes:

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

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

yes and yes.

But the real problem is that you don't follow the posting guide
which asks for a reproducible example
(hint: we don't have 'TIK').

    Dylan> So far I have tried the following:
    Dylan> #make a plot
    Dylan> plot(TIK, type="l", cex=.25, xlim=c(2,32), ylim=c(0,1600))

    Dylan> #try and add a new axis with different numbers in position 3
    Dylan> axis(3,0.154/(2*sin(TIK[,1]/2*pi/180)))

    ....................

    Dylan> ______________________________________________
    Dylan> R-help at stat.math.ethz.ch mailing list
    Dylan> https://stat.ethz.ch/mailman/listinfo/r-help

 > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
   ^^^^^^




More information about the R-help mailing list