[R] 3D Bar Graphs in ggplot2?

Brian Diggs diggsb at ohsu.edu
Wed Aug 3 17:49:53 CEST 2011


On 8/3/2011 6:07 AM, wwreith wrote:
> So I take it 3D pie charts are out?

At least with ggplot, yes.  2D pie charts are somewhat tricky with 
ggplot, even.  They can be gone with stacked, normalized bar charts 
projected into polar coordinates, if I recall properly.

Not limited to ggplot, there is pie() in the graphics package, and 
pie3D() in the plotrix package.

I couldn't find anything that would do bar plots with a 3D effect; the 
closest was the scatterplot3d package, but that is more a way to do a 
two dimensional array of bars, rather than a 3D effect.

> P.S. It is not about hiding anything. It is about consulting and being told
> by your client to make 3D pie charts and change this font or that color to
> make the graphs more apealing. Given that I am the one trying to open the
> door to using R where I work it would be much easier if I could simply use a
> 2D graph.

External requirements can make us make choices we otherwise might not 
have.  If the client is amenable to education, you could slowly try to 
persuade (say, using side-by-side examples), but some are not.  Good luck.

> --
> View this message in context: http://r.789695.n4.nabble.com/3D-Bar-Graphs-in-ggplot2-tp3713305p3715382.html
> Sent from the R help mailing list archive at Nabble.com.
>


-- 
Brian S. Diggs, PhD
Senior Research Associate, Department of Surgery
Oregon Health & Science University



More information about the R-help mailing list