http://www.nabble.com/file/p16349649/at-length.png Hi, I produced this graph with R and I am very happy with it. But now I wonder: Is this some standard way of displaying data and if so, does it have a name? (like Histogram, Box plot etc.) I need to explain the plot to people so knowing a bit more about what exactly this is, would certainly help ;-) Thanks a lot! -- View this message in context: http://www.nabble.com/Quick-question%3A-Does-this-graph-have-a-name--tp16349649p16349649.html Sent from the R help mailing list archive at Nabble.com.
On 3/28/2008 8:37 AM, mika03 wrote:> http://www.nabble.com/file/p16349649/at-length.png > > Hi, > > I produced this graph with R and I am very happy with it. But now I wonder: > Is this some standard way of displaying data and if so, does it have a name? > (like Histogram, Box plot etc.)It's a stacked bar plot. It's also somewhat similar to a mosaic plot, since the stacks all add up to 1, but in a mosaic plot, the rectangles typically have gaps between them, and don't necessarily have equal widths. For example, mosaicplot(~ Class + Survived, data = Titanic, color = TRUE) Duncan Murdoch> I need to explain the plot to people so knowing a bit more about what > exactly this is, would certainly help ;-) > > Thanks a lot! >
Hi, I think it looks like a spineplot. Best regards, Peter. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of mika03 Sent: 28. marts 2008 13:37 To: r-help at r-project.org Subject: [R] Quick question: Does this graph have a name? http://www.nabble.com/file/p16349649/at-length.png Hi, I produced this graph with R and I am very happy with it. But now I wonder: Is this some standard way of displaying data and if so, does it have a name? (like Histogram, Box plot etc.) I need to explain the plot to people so knowing a bit more about what exactly this is, would certainly help ;-) Thanks a lot! -- View this message in context: http://www.nabble.com/Quick-question%3A-Does-this-graph-have-a-name--tp1 6349649p16349649.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.
> I think it looks like a spineplot.Which is a special case of a mosiac plot with only two variables. Hadley PS. I suspect that the plot could be improved by ordering the x and y variables by their marginal counts. (Although maybe the y axis already has an ordering?) -- http://had.co.nz/
mika03 wrote:> http://www.nabble.com/file/p16349649/at-length.png > > Hi, > > I produced this graph with R and I am very happy with it. But now I wonder: > Is this some standard way of displaying data and if so, does it have a name? > (like Histogram, Box plot etc.) > > I need to explain the plot to people so knowing a bit more about what > exactly this is, would certainly help ;-) > > Thanks a lot! >A far better approach to this stacked bar chart would be a two-way dot chart which would also allow the inclusion of margins of error on the point estimates. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
I have always heard this referred to as a stack bar graph. Ken mika03 wrote:> > http://www.nabble.com/file/p16349649/at-length.png > > Hi, > > I produced this graph with R and I am very happy with it. But now I > wonder: Is this some standard way of displaying data and if so, does it > have a name? (like Histogram, Box plot etc.) > > I need to explain the plot to people so knowing a bit more about what > exactly this is, would certainly help ;-) > > Thanks a lot! > >-- View this message in context: http://www.nabble.com/Quick-question%3A-Does-this-graph-have-a-name--tp16349649p16349664.html Sent from the R help mailing list archive at Nabble.com.
mika03 wrote:> http://www.nabble.com/file/p16349649/at-length.png Hi, > I produced this graph with R and I am very happy with it. But now I > wonder: > Is this some standard way of displaying data and if so, does it have > a name? > (like Histogram, Box plot etc.) > I need to explain the plot to people so knowing a bit more about what > exactly this is, would certainly help ;-)So you have been offered: (1) stacked bar plot (Duncan Murdoch) That's good, though most stacked bar plots have bars of equal width. (2) spineplot (Peter Jepsen) Spineplots were introduced for comparing highlighted proportions in interactive graphics. Several people, including Nick Cox with Stata, want to use them for multiple groupings, as in this graphic, presumably because they only use static graphics. That seems to me a quite different use. (3) Stack bar graph (Ken Nussear) (4) Stacked bar chart (Frank Harrell) And I like "Stacked barchart". The only snag is that I don't like the graphic When a graphic is good, then it's useful to be able to give it a good name. I'm not so sure this is a good graphic. Hadley Wickham rightly suggests that ordering may be important, though that would not bring much improvement. Frank Harrell suggests two-way dot charts with error markings of some kind. That might be what is needed, it depends on the aims of your analysis. Personally I suspect that one of two mosaicplot variants might be the best, either multiple barcharts or a fluctuation diagram. Why don't you make your data available, tell us what you want to show, and let all of us have a go? Antony Unwin Professor of Computer-Oriented Statistics and Data Analysis, Mathematics Institute, University of Augsburg, Germany [[alternative HTML version deleted]]
Thanks a lot for all your replies so far! I now share your feeling that this might not be the best way to show the data. Here's what the data is about: We have search engine queries (12,000 of them), which are grouped into semantic categories. (Some ask for a "Person", some are about celebrity "Gossip" etc., you can see this on the x-axis.) Then we asked three subjects for each query, how they think the query should best be answered, we were mainly interested in the preferred length of the response (y-axis: With a "phrase", a "sentence", a text "paragraph" etc.) We want to show in this graph, 1) that users indeed think that queries from different semantic categories should be answered with responses of different lengths. (That a Yes/No answer basically.) 2) how the different length categories are distributed in the individual semantic categories. I hope this was somewhat clear..? Thanks! -- View this message in context: http://www.nabble.com/Quick-question%3A-Does-this-graph-have-a-name--tp16349649p16384250.html Sent from the R help mailing list archive at Nabble.com.