[R] labels of a conditioning variable in xyplot

Berton Gunter gunter.berton at gene.com
Tue Oct 11 01:14:11 CEST 2005


> 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
>




More information about the R-help mailing list