[R] 3d barplot in rgl

Chris Stubben stubben at lanl.gov
Tue Sep 25 20:56:37 CEST 2007


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


Thanks,

Chris



More information about the R-help mailing list