rhelp at numberland.de
2014-Sep-28 22:10 UTC
[R] draw piecharts or histograms at the points of a scatterplot
Hi, I?m fairly new to R and have a problem mentioned in the subject ... I want to draw a scatterplot in 3d - either with scatterplot3d or - preferably - with the rgl package - but instead of points or text (text3d command of rgl) I would like to draw either histograms or pie charts to visualize further properties of the objects. Is there a way to do this? Many thanks in advance spok [[alternative HTML version deleted]]
Duncan Murdoch
2014-Sep-29 09:13 UTC
[R] draw piecharts or histograms at the points of a scatterplot
On 28/09/2014, 6:10 PM, rhelp at numberland.de wrote:> Hi, > > I?m fairly new to R and have a problem mentioned in the subject ... > > I want to draw a scatterplot in 3d - either with scatterplot3d or - > preferably - with the rgl package - but instead of points or text > (text3d command of rgl) I would like to draw either histograms or pie > charts to visualize further properties of the objects. > > Is there a way to do this?One way would be to use the symbols() function with scatterplot3d(), if symbols() is sufficient to show the other properties. A more complicated way would be to write the individual plots to .png files, and then use sprites3d() in rgl to plot those pictures at the point locations. (These are 2d sprites, not 3d sprites.) I'm not sure how good it would look: sprites tend to look blurry because of all the resizing that takes place. Duncan Murdoch> > Many thanks in advance > > spok > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >