robbie.heremans at telenet.be
2008-Nov-25 15:02 UTC
[R] title second y-axis in lattice plot
Dear R-users, After adding the secondary y-axis at the right side of a lattice xyplot (cfr. Lattice: Multivariate Data Visualization with R - figures 8.4 and 8.6, from http://lmdvr.r-forge.r-project.org/figures/figures.html), I'm trying to add a title to that second y-axis (which has to be different from the title on the left side). Where should I place the "ylab<-" instruction? Robbie
On 11/25/08, robbie.heremans at telenet.be <robbie.heremans at telenet.be> wrote:> Dear R-users, > > After adding the secondary y-axis at the right side of a lattice xyplot (cfr. Lattice: Multivariate Data Visualization with R - figures 8.4 and 8.6, from http://lmdvr.r-forge.r-project.org/figures/figures.html), I'm trying to add a title to that second y-axis (which has to be different from the title on the left side). > > Where should I place the "ylab<-" instruction?The only reliable way right now is to add a legend on the right side. I have plans to implement support for arguments 'ylab.right' and 'xlab.top', but this has not happened yet. -Deepayan