[R] labels of a conditioning variable in xyplot

Berton Gunter gunter.berton at gene.com
Tue Oct 11 02:04:43 CEST 2005


Well -- that **IS** curious. It sounds to me like a software bug or a typo
somewhere (are all your little "'"s OK?), but now you exceed my modest
expertise -- especially on a Mac (which apparently can be curious little
devils at times).

Deepayan -- where are you?

Cheers,
Bert 
 

> -----Original Message-----
> From: Nathan Leon Pace, MD, MStat [mailto:N.L.Pace at m.cc.utah.edu] 
> Sent: Monday, October 10, 2005 4:50 PM
> To: Berton Gunter; r-help at stat.math.ethz.ch
> Cc: Nathan Leon Pace, MD, MStat
> Subject: Re: [R] labels of a conditioning variable in xyplot
> 
> This error is a curious one.
> 
> When I remove the labels vector, the names of the levels are printed  
> by default in the strip without difficulty.
> 
> The names of the levels have lengths of 14 to 16 characters.
> 
> My labels had length 18 characters.
> 
> When I reduce the labels to length 10 characters (as you suggest), I  
> get the same error message and no object is created.
> 
> Nathan
> 
> 
> On Oct 10, 2005, at 17:14, Berton Gunter wrote:
> 
> >> Error in do.call("pmax", lapply(cond, is.na)) :
> >>      symbol print-name too long
> >>
> >> When I delete the labels vector, the code runs without difficulty.
> >>
> >> Any thoughts on this error message?
> >>
> >
> > Yes ... the labels are too long to be printed in the space  
> > available. Use
> > shorter labels. For example, remove "Reference" or 
> abbreviate it to  
> > "Ref" ,
> > as it provides no unique identifying info anyway.
> >
> > (Am I missing something? -- I would have thought this was obvious)
> >
> > -- Bert Gunter
> > Genentech Non-Clinical Statistics
> > South San Francisco, CA
> >
> > "The business of the statistician is to catalyze the scientific  
> > learning
> > process."  - George E. P. Box
> >
> >
> >
> >
> >> -----Original Message-----
> >> From: r-help-bounces at stat.math.ethz.ch
> >> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Nathan
> >> Leon Pace, MD, MStat
> >> Sent: Monday, October 10, 2005 3:53 PM
> >> To: r-help at stat.math.ethz.ch
> >> Cc: Nathan Leon Pace, MD, MStat
> >> Subject: [R] labels of a conditioning variable in xyplot
> >>
> >> I am running R 2.1.1 on a Mac g5 under Mac OS 10.4.2.
> >>
> >> I have an xyplot with a single conditioning variable (8 levels) .
> >>
> >> Here is the code for the conditioning variable used in the formula
> >> argument of xyplot:
> >>
> >>        factor(
> >>          drugauthoryear,
> >>          levels = c(
> >>            'bupicapogna1999',
> >>            'levobenhamou2003',
> >>            'ropicapogna1999',
> >>            'ropipolley1999',
> >>            'bupipolley1999',
> >>            'levopolley2003',
> >>            'ropibenhamou2003',
> >>            'ropipolley2003'
> >>          ),
> >>          labels = c(
> >>            'Bupi. Reference 2.',
> >>            'Levo. Reference 4.',
> >>            'Ropi. Reference 2.',
> >>            'Ropi. Reference 3.',
> >>            'Bupi. Reference 3.',
> >>            'Levo. Reference 5.',
> >>            'Ropi. Reference 4.',
> >>            'Ropi. Reference 5.'
> >>            )
> >>        )
> >>
> >>
> >> The object is not created and I get the following error message:
> >>
> >> Error in do.call("pmax", lapply(cond, is.na)) :
> >>      symbol print-name too long
> >>
> >> When I delete the labels vector, the code runs without difficulty.
> >>
> >> Any thoughts on this error message?
> >>
> >> Thanks,
> >>
> >> Nathan
> >>
> >> ______________________________________________
> >> R-help at stat.math.ethz.ch mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide!
> >> http://www.R-project.org/posting-guide.html
> >>
> >>
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting- 
> > guide.html
> >
> 
>




More information about the R-help mailing list