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]
Re: st: RE: Added text with time format preserved in graph
From
Thomas Speidel <[email protected]>
To
<[email protected]>
Subject
Re: st: RE: Added text with time format preserved in graph
Date
Thu, 12 Dec 2013 11:27:57 -0600
Thanks David. That worked.
Thomas
On 2013-12-11 18:43, Radwin, David wrote:
Try this:
text(56.917 -111.30 "`: display %tc `r(min)''")
David
--
David Radwin, Senior Research Associate
Education and Workforce Development
RTI International
2150 Shattuck Ave. Suite 800, Berkeley, CA 94704
Phone: 510-665-8274
www.rti.org/education
-----Original Message----- From:
[email protected]
[1] [mailto:owner- [email protected] [2]] On Behalf Of
Thomas Speidel Sent: Wednesday, December 11, 2013 4:33 PM To:
Statalist
Subject: st: Added text with time format preserved in graph 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/
Links:
------
[1] mailto:[email protected]
[2] mailto:[email protected]
--
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/