[R] squared "pie chart" - is there such a thing?
Liaw, Andy
andy_liaw at merck.com
Mon Jul 25 17:28:45 CEST 2011
Has anyone suggested mosaic displays? That's the closest I can think of as a "square pie chart"...
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Naomi Robbins
> Sent: Sunday, July 24, 2011 7:09 AM
> To: Thomas Levine
> Cc: r-help at r-project.org
> Subject: Re: [R] squared "pie chart" - is there such a thing?
>
> I don't usually use stacked bar charts since it is difficult
> to compare
> lengths that don't have
> a common baseline.
>
> Naomi
>
> On 7/23/2011 11:14 PM, Thomas Levine wrote:
> > How about just a stacked bar plot?
> >
> > barplot(matrix(c(3,5,3),3,1),horiz=T,beside=F)
> >
> > Tom
> >
> > On Fri, Jul 22, 2011 at 7:14 AM, Naomi
> Robbins<nbrgraphs at optonline.net> wrote:
> >> Hello!
> >> It's a shoot in the dark, but I'll try. If one has a total of 100
> >> (e.g., %), and three components of the total, e.g.,
> >> mytotal=data.frame(x=50,y=30,z=20), - one could build a
> pie chart with
> >> 3 sectors representing x, y, and z according to their
> proportions in
> >> the total.
> >> I am wondering if it's possible to build something very
> similar, but
> >> not on a circle but in a square - such that the total area of the
> >> square is the sum of the components and the components (x,
> y, and z)
> >> are represented on a square as shapes with right angles (squares,
> >> rectangles, L-shapes, etc.). I realize there are many possible
> >> positions and shapes - even for 3 components. But I don't
> really care
> >> where components are located within the square - as long
> as they are
> >> there.
> >>
> >> Is there a package that could do something like that?
> >> Thanks a lot!
> >>
> >> -----
> >>
> >> I included waffle charts in Creating More Effective Graphs.
> >> The reaction was very negative; many readers let me know
> >> that they didn't like them. To create them I just drew a table
> >> in Word with 10 rows and 10 columns. Then I shaded the
> >> backgrounds of cells so for your example we would shade
> >> 50 cells one color, 30 another, and 20 a third color.
> >>
> >> Naomi
> >>
> >> -------------
> >>
> >>
> >> Naomi B. Robbins
> >> 11 Christine Court
> >> Wayne, NJ 07470
> >> 973-694-6009
> >>
> >> naomi at nbr-graphs.com<mailto:naomi at nbr-graphs.com>
> >>
> >> http://www.nbr-graphs.com
> >>
> >> Author of Creating More Effective Graphs
> >> <http://www.nbr-graphs.com/bookframe.html>
> >>
> >> //
> >>
> >>
> >>
> >> [[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.
> >
>
>
> --
>
> --
>
> Naomi B. Robbins
>
> NBR
>
> 11 Christine Court
>
> Wayne, NJ 07470
>
> Phone: (973) 694-6009
>
> naomi at nbr-graphs.com <mailto:naomi at nbr-graphs.com>
>
> http://www.nbr-graphs.com <http://www.nbr-graphs.com/>
>
> Follow me at http://www.twitter.com/nbrgraphs
>
> Author of /Creating More Effective Graphs
> <http://www.nbr-graphs.com/bookframe.html>/
>
>
> [[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.
>
Notice: This e-mail message, together with any attachme...{{dropped:11}}
More information about the R-help
mailing list