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]
st: Added text with time format preserved in graph
From
Thomas Speidel <[email protected]>
To
Statalist <[email protected]>
Subject
st: Added text with time format preserved in graph
Date
Wed, 11 Dec 2013 18:33:18 -0600
I have the following loop to plot and save a different scatterplot for
each value of `i':
****************************************************
# delimit ;
forval i = 1/10 {;
summ date if seq==`i', format;
graph twoway scatter latid longit if seq==`i',
text(56.917 -111.30 "`r(min)'")
;
};
****************************************************
I want the added text to reflect the time format of the variable it is
referring to, which is %tc.
Is there an option or a work around? Perhaps, somehow converting the
date to a string?
--
Thomas Speidel
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/