Statalist The Stata Listserver


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

st: Date formating of subtitles with by_option


From   Zachary Harrison <[email protected]>
To   [email protected]
Subject   st: Date formating of subtitles with by_option
Date   Mon, 25 Sep 2006 06:56:09 -0700 (PDT)

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/



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