[R] 3d barplot in rgl

Duncan Murdoch murdoch at stats.uwo.ca
Tue Sep 25 20:48:30 CEST 2007


On 9/25/2007 2:34 PM, stubben wrote:
> Is there anyway to plot a matrix using a 3d bar plot.  Something like  
> bar3 in matlab?
> 
> The example in demo hist3d does a 3d barplot for binned data, but has
> anyone tried something for a simple matrix with spaces betwen bars
> and axis labels using matrix dimnames or 1,2,3?

That demo gives you the basics of the code, so it shouldn't be too hard 
to put your own together:  just strip out the counting part.

Duncan Murdoch



More information about the R-help mailing list