Skip to content
Prev 311225 / 398513 Next

[lattice] format and rotation of strip text

On Nov 18, 2012, at 7:05 PM, Tom Roche wrote:

            
Agreed. I was making the erroneous clam on the basis of looking at  
what my code was plotting and at your output of head(array.3d.df) but  
should have printed out the entire vector of as.character(round(array. 
3d.df[['lev']], 1))
I'm very puzzled here. Why should they all be the same? I thought you  
were asking why they shouldn't be different.
I get blank strips (or rather only side strips with red bars that  
indicate progression.
I showed how they should be rounded but maybe they needed to be  
indexed or have unique put around them so they cam be displayed in the  
proper sequence. This seems to be a better result:

levelplot(
  conc ~ lon * lat | rev(lev), data=array.3d.df, layout=c(1,lev),
  levs=as.character(round(array.3d.df[['lev']], 1)),
  strip=FALSE,
  strip.left=strip.custom(
factor.levels=as.character(round(unique(array.3d.df[['lev']]), 2)),
    strip.levels=TRUE,
    horizontal=TRUE,
    strip.names=FALSE ,
    par.strip.text=list(cex=0.5)
  )
)


David Winsemius, MD
Alameda, CA, USA