Hi all, I've got R for windows 2.3.1 I'm trying to modify my lattice histograms. The following does reset the y-label to blue, but I cannot turn off the label (alpha=0), nor shift label position (I'm assuming that is what lineheight is for). Is 'lineheight' the equivalent of 'line' in mtext? Am I erring somehow? Thanks! trellis.par.set(list(par.ylab.text=list(col='blue'))) #<- works trellis.par.set(list(par.ylab.text=list(alpha=0))) #<-no change, i.e. label still there trellis.par.set(list(par.ylab.text=list(lineheight=3))) #<- label not moved I assume I'm interpreting alpha correctly as this gets rid of axes: trellis.par.set(list(axis.line=list(alpha=0))) _______________________________________________________ Michael Folkes Salmon Stock Assessment Canadian Dept. of Fisheries & Oceans Pacific Biological Station 3190 Hammond Bay Rd. Nanaimo, B.C., Canada V9T-6N7 Ph (250) 756-7264 Fax (250) 756-7053 folkesm@pac.dfo-mpo.gc.ca [[alternative HTML version deleted]]
On 10/31/07, Folkes, Michael <FolkesM at pac.dfo-mpo.gc.ca> wrote:> Hi all, > I've got R for windows 2.3.1 > I'm trying to modify my lattice histograms. > The following does reset the y-label to blue, but I cannot turn off the label (alpha=0), nor shift label position (I'm assuming that is what lineheight is for). Is 'lineheight' the equivalent of 'line' in mtext? > Am I erring somehow?AFAIK, lineheight only applies to multiline labels (it gets forwarded to grid). It does have an effect for such labels. The alpha thing is a bug, specifically, a bug in lattice:::getLabelList, which forgets to look at alpha. For your use, a temporary fix is to use col="transparent". -Deepayan
Reasonably Related Threads
- Plot SpatialLinesDataFrame with xlim & ylim
- Convert week value to date
- maptools::sunriset() daylight savings to stardard time change
- Hmisc binconf function value interpretation during narrow confidence intervals
- lattice: passing multiple lty values to the key/legend