Hi, I have plotted a graph and used a secondary axis as follows: plot (d$Year, d$HrFishing, type='l', col='1', xlab='Year', ylab='Effort (hours/fishing)') par(new=TRUE) plot (d$Year, d$Landings, type='l', col='3', xlab='', ylab='') axis(4) However, if I put a label in the 2nd ylab='' it is placed over the 1st ylab, on the left hand side. Clearly label in the axis command is not what I want as that erases my tick marks, and ylab generates errors here! Please can someone give me a pointer on what I should be using. Thanks Louize PS - how long do postings take to get in the archives - I remember seeing something about scale values (pure numeric?) this week, I erased it and now I discover I need to follow the advice!
On Thu, 26-Aug-2004 at 01:34AM +0100, Louize Hill wrote: |> Hi, |> I have plotted a graph and used a secondary axis as follows: |> |> plot (d$Year, d$HrFishing, type='l', col='1', xlab='Year', ylab='Effort |> (hours/fishing)') |> par(new=TRUE) |> plot (d$Year, d$Landings, type='l', col='3', xlab='', ylab='') |> axis(4) |> |> However, if I put a label in the 2nd ylab='' it is placed over the 1st ylab, |> on the left hand side. |> Clearly label in the axis command is not what I want as that erases my tick |> marks, and ylab generates errors here! |> Please can someone give me a pointer on what I should be using. mtext is your friend. -- Patrick Connolly HortResearch Mt Albert Auckland New Zealand Ph: +64-9 815 4200 x 7188 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~ I have the world`s largest collection of seashells. I keep it on all the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
>>>>> "Louize" == Louize Hill <louize99 at yahoo.co.uk> >>>>> on Thu, 26 Aug 2004 01:34:15 +0100 writes:<....> Louize> PS - how long do postings take to get in the Louize> archives - I remember seeing something about scale Louize> values (pure numeric?) this week, I erased it and Louize> now I discover I need to follow the advice! well, there are several (somewhat) independent archives. The official "cheap" ones are directly available from the mailing list page (URL at the end of every message!), and things get in there typically faster than they hit your e-mailbox. Then, there are quite a few other archives the most prominent ones mentioned on http://cran.r-project.org/search.html Martin Maechler