Skip to content
Back to formatted view

Raw Message

Message-ID: <47ECE9B8.7030300@stats.uwo.ca>
Date: 2008-03-28T12:51:04Z
From: Duncan Murdoch
Subject: Quick question: Does this graph have a name?
In-Reply-To: <16349649.post@talk.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!
>