[R] xfig boxplot (polygon) bug??

Yves Gauvreau cyg at sympatico.ca
Tue Feb 13 10:07:04 CET 2001


All I can help you with is for the code.

> boxplot.default


Yves Gauvreau
B.E.F.P. Universite du Quebec a Montreal
cyg at sympatico.ca

> -----Message d'origine-----
> De : owner-r-help at stat.math.ethz.ch
> [mailto:owner-r-help at stat.math.ethz.ch]De la part de
> e.catchpole at adfa.edu.au
> Envoye : Monday, February 12, 2001 10:52 PM
> A : r-help at stat.math.ethz.ch
> Objet : [R] xfig boxplot (polygon) bug??
> 
> 
> There appears to be a bug in the R xfig() driver.
> 
> When I run a simple example, eg
> 
> > data(InsectSprays)
> > boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
> 
> the boxplot is fine. Doing the same thing after
> 
> > xfig(file='test.fig')
> 
> and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box 
> produces boxplots
> where the boxes, although correctly shaded in, have
> lost the vertical line that defines the left edge of the box. That is,
> they look like
> 
>        |                         |    
>        |                         |    
>      -----                     -----  
>           |                   |     | 
>           |    instead of     |     | 
>           |                   |     | 
>      -----                     -----  
>        |                         |    
>        |                         |    
> 
> This doesn't sound serious, but I'm running the result through pdf
> postprocessors (mpost, then ppower4), and the result comes out as
> triangles instead of boxes!
> 
> A simple workaraound, I expect, would be to define the boxes as
> 5-point polygons rather than 4-point, to force closure (sorry if I'm
> not using the right jargon here).
> 
> I tried to get a look at the boxplot code to check this out, but
> 
> > boxplot
> 
> just produces
> 
> function (x, ...) 
> UseMethod("boxplot")
> 
> Is there any way I can get at the boxplot code? Or is there another
> way out of my problem? I'd be very grateful for any help.
> 
> I'll post this as a bug if this is confirmed.
> 
> Thanks,
> Ted.
> 
> Dr E.A. (Ted) Catchpole                 
> School of Maths & Stats                Honorary Senior Research Fellow
> University College, UNSW               Institute of Maths & Stats      
> Australian Defence Force Academy       University of Kent at Canterbury
> Canberra, ACT 2600, Australia          Canterbury CT2 7NF, England
> e-catchpole at adfa.edu.au                E.A.Catchpole at ukc.ac.uk
> www.ma.adfa.edu.au/~eac          
> fax: +61 2 6268 8886
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-
> r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list