Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Graphical challenge from Gelman blog


From   "Airey, David C" <david.airey@vanderbilt.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Graphical challenge from Gelman blog
Date   Thu, 21 Apr 2011 16:17:49 -0500

.

> I'd reorder in a different way. The graphs you link to make comparisons easiest between activities and within countries, which is not the most interesting comparison, in my opinion. More interesting to compare between countries and within activity, like so:
> 
> bysort activity: egen mean = mean(hours)
> gen hrs_mean = hours - mean
> twoway bar hrs_mean country, horizontal by(activity , graphregion(color(white)) ixaxes note("")) lcolor(gs3) fcolor(gs3) barwidth(0.85) ytitle("") ylabel( 1(1)6 , valuelabel angle(0) nogrid tlength(0)) xline(0, lcolor(gs0)) yscale( lcolor(white) ) aspect(0.75) subtitle( , fcolor(white) lcolor(white) justification(left)) xtitle("hours above or below mean")
> 
> James


Nice.

First I'm moving the France, because I'm hungry and tired, and then I'm moving to Japan because I need a better paycheck.

-Dave
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index