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]

st: tabplot option


From   Danae Roumis <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: tabplot option
Date   Mon, 28 Oct 2013 17:22:02 +0000

Is there an option for -tabplot- to use the -by(var2)- option and output just one plot rather than have side by side plots for each value of var2?

For example, my code,  is: 

tabplot var1 if var1 >0, by(var2, title("Title")                        ///
                subtitle("Subtitle", size(small)) note(""))              ///
                percent(var2)  xtitle("")                                                ///
                xlabel(, labsize(vsmall) angle(45))                             ///
	showval(offset(0.1) format(%2.0f)) barw(.75)

I don't actually want them to be overlaid but instead of the -by(var2)- option, I'm wondering if there is something analogous to -over(var2)- such that I can have one plot area with 2 adjacent bars representing each of the var2 categories, for each of the many var1 categories. I'm using Stata12. Any pointers much appreciated.

Thanks, 
Danae Roumis

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