[Rd] barchart fails when grouping variable has more than 7 levels (PR#7293)

deepayan at stat.wisc.edu deepayan at stat.wisc.edu
Tue Oct 19 05:31:00 CEST 2004


On Monday 18 October 2004 21:47, kiermeier.andreas at saugov.sa.gov.au 
wrote:
> Full_Name: Andreas Kiermeier
> Version: 2.0.0
> OS: Windows XP
> Submission from: (NULL) (203.26.122.12)
>
>
> I've struck a problem drawing barcharts after installing R 2.0.0.
> Previously I've used the following command
>
> print(barchart(100*result ~ sample,
>                groups=congener,
>                data=dioxin.2003.fresh.ub.p, stack=TRUE,
> ylim=c(0,102)))
>
> to draw a stacked barchart of the precentage contribution of each
> type of dioxin congener. Now, however I get the following error.
>
> Error in grid.Call.graphics("L_rect", x$x, x$y, x$width, x$height,
> valid.just(x$just)) :
>  invalid line type
>
> The graph that actually results on my trellis device has axes and for
> the first sample it manages to 7 of the 17 stacked bars.

Right, I had the color replicated to be as long as necessary, but missed 
the other things. Should be fixed in the next release. Thanks,

Deepayan



More information about the R-devel mailing list