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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: barcharts with error plot + legend?


From   Muhammad Anees <anees@aneconomist.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: barcharts with error plot + legend?
Date   Thu, 24 Nov 2011 09:38:40 +0500

You can get an idea to start from

-help graph bar-

and a bar chart could be generated from

-graph ()bar (mean) yournumericalvariable, over(region) by(anothervariable)-

and the paranthesis before -bar- can contain -h- for horizontal if you
desire otherwise simple -bar- would give a vertical bar chart.

On Thu, Nov 24, 2011 at 4:25 AM, Guo Xu <digitalepourpre@gmail.com> wrote:
> Dear list,
>
> I'm looking for a procedure that can swiftly create barcharts with
> over(.) and by(.) + allows me to add a legend. Basically, I'm looking
> for an easy way to create this:
>
> http://www.ats.ucla.edu/stat/stata/faq/barcap.htm
>
> The procedure described on the website, however, is incredibly tedious
> and I failed to find a shortcut. I'd be grateful for any suggestions
> or hints!
>
> Thanks a lot,
>
> Guo
> *
> *   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/
>



-- 

Regards
---------------------------
Muhammad Anees
Assistant Professor
COMSATS Institute of Information Technology
Attock 43600, Pakistan
www.aneconomist.com

*
*   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