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]

st: graph bar, x-axis and dates


From   "Ben Ammar" <Ben-Ammar@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: graph bar, x-axis and dates
Date   Thu, 21 Apr 2011 17:57:43 +0200

Hi everyone,

I've got a panel dataset, where I want show the developement of two different groups in the course of time which worked fine by the following command:

graph bar (count) special general, over (date) stack percentage

Unfortunately, since there are more than 30 years of monthly data, the x-axis is filled with dates that it can't be read anymore. Is there a way that the graph shows only years, preferably in 5 year steps?
I know that this is a time series graph so there should be in fact also a command like tsrline to avoid my problem. However I couldn't find anything that creates a graph like the above mentioned (stacked percentage of both groups in each month). I also checked "A visual guide to stata graphics" by Michael Mitchell but I couldn't find anything about a similar graph.

Thanks in advance, everyone!
Ben 
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
*
*   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