. tostring dtm, gen(dtmstring) usedisplayformat
. twoway scatter v1 v1, by(dtmstring)
Zachary Harrison wrote:
> Hi all-
>
> I am attempting a twoway with a ",
> by(<date_variable>)" option. My date variable is
> formatted with %tmmY, yet the subtitles of the suplots
> are numbers. Here is a very basic example where the
> twoway command has the numerical subtitles. Is there
> a way to fix this?
>
> . desc dtm
>
> storage display value
> variable name type format label variable
> label
> ---------------------------------------------------------------------------
>---- dtm float %tmmY
>
>
>
> . list
>
> +------------+
>
> | dtm v1 |
> |------------|
>
> 1. | Feb05 1 |
> 2. | Mar05 1 |
> +------------+
>
> . twoway (scatter v1 v1), by(dtm)
>
> Thanks!
>
> Zach
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
--
[email protected]
+49 (030) 25491-361
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/