Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Date formating of subtitles with by_option


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Date formating of subtitles with by_option
Date   Mon, 25 Sep 2006 16:19:31 +0200

. 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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index