Hello, maybe someone can help me. I am looking for a possibility to plot a 3D area diagram like in Excel: http://www.microsoft.com/germany/mac/excel/images/chartbefore.jpg Watch this! Would be nice if someone had any idea about that. Thank you Alex -- View this message in context: http://www.nabble.com/3D-Area-Diagram-tp17411317p17411317.html Sent from the R help mailing list archive at Nabble.com.
On 22/05/2008 3:04 PM, AlGates wrote:> Hello, > > maybe someone can help me. I am looking for a possibility to plot a 3D area > diagram like in Excel: > http://www.microsoft.com/germany/mac/excel/images/chartbefore.jpg Watch > this! > > Would be nice if someone had any idea about that.I'd say the world would be a better place if you left that plot in Excel, but if you really want, you could do it using the scatterplot3d or rgl packages. In both cases you'll need to build it up from simple pieces, neither of them has such a thing already built in. Duncan Murdoch
On May 22, 2008, at 3:04 PM, AlGates wrote:> Hello, > > maybe someone can help me. I am looking for a possibility to plot a > 3D area > diagram like in Excel: > http://www.microsoft.com/germany/mac/excel/images/chartbefore.jpg > Watch > this! > > Would be nice if someone had any idea about that.I don't know why you would want to subject your viewers/readers to a graph like that (Do we really need three dimensions and a ton of color to represent two groups of 4 numbers? And how can you possibly do comparisons when they are each behind each other? The area shading would prompt the viewer to compare areas, and only the blue areas are visible. Actually, can one even tell from the graph which of the two lines is higher in the fourth quarter, let alone by how much?), but would using RExcel to actually ask Excel from R to draw the graph be an acceptable solution? Otherwise I think that perhaps looking at wireframe in the lattice package might get you started. Perhaps others have some better suggestions. But I would reiterate my suggestion for considering other ways of showing your data.> Thank you > AlexHaris Skiadas Department of Mathematics and Computer Science Hanover College
AlGates <alex <at> algates.de> writes:> > > Hello, > > maybe someone can help me. I am looking for a possibility to plot a 3D area > diagram like in Excel: > http://www.microsoft.com/germany/mac/excel/images/chartbefore.jpg Watch > this! >This would be theoretically possible, although not that easy, with the rgl package. But ... this goes in the category of "do you *really* want to do this?" The graph you show may be aesthetically pleasing, but both the perspective and the obscuring of the rearmost data categories make it much harder to see what's going on. If you really want to do this, I would export the data from R as a csv file and use Excel ... (easier than getting rgl to do it) Ben Bolker
Thank you all for your help. I will check the packages you suggested asap and maybe I find a good way to get a such a plot. The picture I posted was only an example taken from the microsoft-website, just to make clear what kind of diagram I am looking for. I know that one part is hidden by the other and that it would be better to show it somehow different. The one I rather need, is something like this (scan from a book): http://algates.de/Scan.jpg The only difference is the angle. -- View this message in context: http://www.nabble.com/3D-Area-Diagram-tp17411317p17414621.html Sent from the R help mailing list archive at Nabble.com.
AlGates wrote:> Thank you all for your help. I will check the packages you suggested asap and > maybe I find a good way to get a such a plot. > > The picture I posted was only an example taken from the microsoft-website, > just to make clear what kind of diagram I am looking for. I know that one > part is hidden by the other and that it would be better to show it somehow > different. > The one I rather need, is something like this (scan from a book): > http://algates.de/Scan.jpg > The only difference is the angle.Hi Al, You can get a 2D version of this with stackpoly in the plotrix package (v2.4-2) although if you really want 3D, I agree with Ben. Jim