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]

Re: st: graphs with dates question...


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: graphs with dates question...
Date   Fri, 16 Apr 2010 07:37:31 +0200

. collapse (mean) v1, by(quarter)
. format quarter %tdCCYY-q
. sum quarter, meanonly
. tw bar v1 quarter, xlab(`=r(min)'(365)`=r(max)')


Am Donnerstag, den 15.04.2010, 20:44 -0700 schrieb Asdsa Sdjfkn:
> I want to make a graph with the command:
> 
> graph bar (mean) Var1, over (Quarter)
> 
> where Quarter is formatted as 
> %tq. This produces a graph with the number corresponding to the quarter 
> on the x-axis, rather than the actual quarter (e.g. '0' instead of 
> '1960q1'). How can I get the quarter to show up rather than the 
> corresponding number?
> 
> I'd also like only, say, one quarter a year to be labelled on the x-axis, otherwise there isn't enough room for all the text to fit. I've trawled through the documentation for this, but 
> haven't found anything useful...
> 
> thanks!
> 
> 
> 
>       
> *
> *   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index