search for: mystrip

Displaying 2 results from an estimated 2 matches for "mystrip".

Did you mean: myscript
2011 Mar 05
2
lattice: drawing strips for single-panel plots
The strip argument to panel.xyplot seems to be ignored for single-panel plots. Here is an example: data(Chem97, package = "mlmRev") myStrip <- function(...) { ltext(.5, .5, 'strip text') } densityplot(~ gcsescore, data = Chem97, strip=myStrip) The figure is printed with no strip. The strip.default documentation suggests that Deepayan intended this behavior. Still, it would help to be able to use the strip argument fo...
2010 Jan 26
0
create custom function to annotate a levelplot
......,style,par.strip.text) strip.default(...,style=1,par.strip.text = list(cex=.8, font=3))) #---------------------------------- But then also the strip with the model approach turns into italic font type. So I tried to customize my own strip function like this: #---------------------------------- mystrip <- function(which.given,which.panel,factor.levels,par.strip.text,...){ if (which.given == 1){ par.strip.text = list(cex=.8, font=3) panel.text(x=0.1,y=0,pos=3,lab=factor.levels[which.panel[which.given]]) } if (which.given == 2){ par.strip.text = list(cex=.6, font=1)...