[R] strip.custom() with more than one conditioning variable
Patrick Connolly
p_connolly at slingshot.co.nz
Fri Nov 16 09:31:49 CET 2012
On Thu, 15-Nov-2012 at 07:29PM -0700, ilai wrote:
|> dotplot(variety ~ yield | year+ site, barley,
|> strip = function(...,which.given,factor.levels) {
|> if(which.given==2){
|> strip.default(which.given,factor.levels=substr(levels(barley$site), 1,
|> 1),style=4,...)
|> }
|> else{
|>
|> strip.default(which.given=which.given,factor.levels=factor.levels,style=3,...)
|> }
|> }
|> )
|>
Thanks for that. I'd never have figured it out myself. Seeing how
that worked helped me get done what I was trying to do.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the R-help
mailing list