Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Maarten Buis <maartenlbuis@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: How to graph this. |

Date |
Mon, 3 Feb 2014 13:08:39 +0100 |

That looks like a mosaic plot. As far as I know, the only version of a mosaic plot that has been implemented in Stata is Nick Cox's -spineplot- (available from SSC), However that is for two-dimensional problems, i.e. involving two variables, and you seem to have a one-dimensional problem, i.e. one variable. I don't think that what you were asked to do is a very good idea: look at how your information is stored in the graph. It is there in terms of the area of different blocks. Humans are pretty bad at interpretating areas, so your graph is not a very efficient way of conveying information. Hope this helps, Maarten On Mon, Feb 3, 2014 at 10:49 AM, Amadou DIALLO <stata.diallo@gmail.com> wrote: > Dear statlisters, > I've been asked to produce the following graph, but couldn't find a > way to do it. > Let's say you have 3 individuals whose income are > > obs inc > 1 75 > 2 12.5 > 3 12.5 > > I want to have the following graph: a matrix of total income, where > each individual's share will be plotted. > > --------------------------------------------- > | | | > | | 12.5 | > | 75 | -------- | > | | 12.5 | > | | | > --------------------------------------------- > > If possible, I want to add labels and plot each box with a different > color. Of course, in my sample, I have more observations. > > Best regards and thanks for usual support. > > -- > Amadou B. DIALLO, PhD. > Senior Economist, AfDB. > a.b.diallo@afdb.org > +21671101789 > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ -- --------------------------------- Maarten L. Buis WZB Reichpietschufer 50 10785 Berlin Germany http://www.maartenbuis.nl --------------------------------- * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: How to graph this.***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**st: How to graph this.***From:*Amadou DIALLO <stata.diallo@gmail.com>

- Prev by Date:
**st: Weird formula for the variance of the -mean- function** - Next by Date:
**Re: st: How to graph this.** - Previous by thread:
**st: How to graph this.** - Next by thread:
**Re: st: How to graph this.** - Index(es):