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: graphs with dates question...


From   Ulrich Kohler <kohler@wzb.eu>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index