[R] 3D Bar Graphs in ggplot2?

baptiste auguie baptiste.auguie at googlemail.com
Wed Aug 3 23:53:11 CEST 2011


A barplot rendered with povray,

http://zoonek2.free.fr/UNIX/48_R/03.html#10

At the other end of the spectrum,

library(txtplot)
 x <- factor(c("orange", "orange", "red", "green", "green", "red",
               "yellow", "purple", "purple", "orange"))
  o <- capture.output(txtbarchart(x))
library(gplots)
textplot(o)

Best,

baptiste


On 4 August 2011 03:49, Brian Diggs <diggsb at ohsu.edu> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list