[R] 3d barplot in rgl

hadley wickham h.wickham at gmail.com
Tue Sep 25 21:21:23 CEST 2007


On 9/25/07, Chris Stubben <stubben at lanl.gov> wrote:
> hadley wickham <h.wickham <at> gmail.com> writes:
>
> >
> > Why do you want a 3d barchart?  They are generally a bad way to
> > present information as tall bars can obscure short bars, and it is
> > hard to accurately read off the height of a bar.  While adding
> > rotation can reduce some of these problems, why not create a graphic
> > that your viewers can take in with a glance?
> >
>
> 3d barplots are a common way to display sensitvity/elasticity matrices in
> stage-structured demography.  Here's a few other options from Caswell's Matrix
> population models book (2001) - I definitely  prefer 3d barcharts to these
> alternatives.
>
>
> heatmap(log10(A[3:1,]), Rowv = NA,  Colv = NA, scale="none")
>
> plot(log10(c(A)), type="s")

Both of those look like equally awful alternatives.  Perhaps you could
explain more about your data (perhaps with a sample?) so that we could
suggest better alternatives.

Hadley



More information about the R-help mailing list