Bookmark and Share

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]

Re: st: Graph with an additional feature/dimension


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Graph with an additional feature/dimension
Date   Tue, 8 Jan 2013 09:43:44 +0000

I don't quite share your enthusiasm for the quarter circles, but I
would start with something like

twoway function sqrt(1 - x^2), ra(-1 0) recast(area) aspect(1) color(teal)

You need to scale and shift it, but that's a start. I presume you're
using -twoway bar- for the rest.

Nick

On Tue, Jan 8, 2013 at 4:42 AM, Patrick J. Flaherty <[email protected]> wrote:

> The Wall Street Journal published this graph on Saturday and I am trying to
> replicate it with my Connecticut data.
>
> http://bit.ly/wsjjobs2012
>
> I am able to get the bars to be different colors based on value by creating
> one data series for positive numbers and another for negative values (for
> each industry, each year has either a positive value and a missing negative
> value, or a missing positive value and a negative value).  This isn't hard
> to do but perhaps there is a more elegant solution.
>
> Where I am stumped is the quarter circle on the bottom right of each graph
> sized according to the level of employment in the industry.  Obviously it
> would be easy to create a pie chart showing the proportions of employment by
> industry and then the set of bar charts showing annual growth, but, in my
> view, it looks nice having all that information in one display.
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index