[R] 2nd Y-axis text problem

Sion Roberts s.e.roberts at qmul.ac.uk
Tue Oct 26 18:17:46 CEST 2004

Dear All,
I'm having problems getting text to appear on a second y axis....because
this can only be done within a plot statement and my attempts to add the
label as text didn't work because the "locator" refers to the plot

Any thoughts greatly appreciated.

Thanks in advance,

>plot(time[DOY<230],Hmeas[DOY < 230],ylab=expression(paste("Fluxes,
W",m^-2)),xlab="Time of Day,

>axis(1,at=c(0,6,12,18,24),tick=T) par(new=T)

>axis(4,at=c(0,0.4,0.8,1.2,1.6),tick=T) # **problem**

More information about the R-help mailing list