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]

From |
Maria Sokolova <megami2717@yahoo.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: complicated twoway graph |

Date |
Fri, 10 May 2013 02:55:16 -0700 (PDT) |

Thanks, David! I do appreciate the reference to the book - seems like to be a good read. But this certain graph will make enough of the point I am trying to make... The comparison and all is afterwards - this one is need just to highlight the aspect.. I just need to clean up the graph. Thanks a lot for the advice though, Maria ----- Original Message ----- From: David Hoaglin <dchoaglin@gmail.com> To: statalist@hsphsun2.harvard.edu Cc: Sent: Thursday, May 9, 2013 11:50 PM Subject: Re: st: complicated twoway graph Maria, What comparisons are you trying to make in your data? One key idea in creating better graphical displays is to avoid divided (or stacked) bar charts. The sort of chart that Sergiy suggested is likely to be less effective for almost any comparison than a number of alternatives. The book by Naomi Robbins (2005) has some good examples. David Hoaglin Robbins, Naomi B. (2005). Creating More Effective Graphs. John Wiley & Sons. (It is being re-issued, if it hasn't been already.) On Thu, May 9, 2013 at 5:01 PM, Maria Sokolova <megami2717@yahoo.com> wrote: > Thanks, Sergiy! > Thanks a lot - my knowledge of stata is yet to be improved.. > Have several questions: > 1) I did not manage to stack the variables one after each other, but summed them up (together they are 1) and have put in the right order so now it looks like true.. what is the option for stacking? -well, if not, you can ignore that, as I managed to do it anyhow.. what matters that it worked > 2) can you refer me to how to force stata to recycle the colors with a period? I could not figure out... 1 2 3 from below give the "big" colors, but how do I force the "small" colors? > 3) sc t1 zero gives me a line of dots on the 0 line in the middle from t1 which represents the periods - how do I "hide" this? > 4) how (and also - where) do I put the option for every 4th gorizontal year to be thicker (cutoff for the year)? > > > twoway bar bigVCPv1 bigLCPv1 bigPCPv t1, horizontal || /* > */bar smallVCPv1 smallLCPv1 smallPCPv t1, horizontal, ||/* > */sc t1 zero,/* > */xtitle( "Currency pricing per groups of companies" ) ytitle("")/* > */legend(label(1 VCP) label(2 LCP) label(3 PCP)) legend(order(1 2 3))/* > */ysca(noline) ylabel(none) xsca(noline titlegap(-0.1))/* > */xlabel(-1 "1"-0.75 "75%" -0.5 "50%" -0.25 "25%" 0 "0" 0.25 "25%" 0.5 "50%" 0.75 "75%" 0(1)1 , tlength(0) grid gmin gmax) * * 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/ * * 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/

**References**:**Re: st: complicated twoway graph***From:*Sergiy Radyakin <serjradyakin@gmail.com>

**Re: st: complicated twoway graph***From:*Maria Sokolova <megami2717@yahoo.com>

**Re: st: complicated twoway graph***From:*David Hoaglin <dchoaglin@gmail.com>

- Prev by Date:
**st: Significance of adjusted Heckman estimates** - Next by Date:
**RE: Re: st: detonator plot with three grouping variables** - Previous by thread:
**Re: st: complicated twoway graph** - Next by thread:
**Re: st: complicated twoway graph** - Index(es):