Statalist


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

st: local macro


From   Höchle, Daniel (MI Switzerland) <daniel.hoechle@rmf.ch>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: local macro
Date   Fri, 13 Jun 2008 15:16:17 +0200

Dear all,

In order to place text "here-->" in a -twoway line- graph at x-value 250 and y-value 100 one types

. twoway (line Yvals Xvals, sort), ttext(100 250 "here-->", orientation(vertical))

I would like to automize the placement of text messages in -twoway line- graphs (sometimes there are 5 or more observations that I would like to mark). Therefore, I would like to create a local macro (MarkStr) which contains the content of the -ttext- option. Unfortunately, however, I do not manage to fill in double quotes in local macros. 

While I can produce local macro MarkStr with content "100 250 here-->" by typing

. local MarkStr "100 250 here-->"

I do not manage to produce a macro containing the string: "100 250 "here-->""

Any idea on how to solve this issue or to more efficiently mark certain points in line graphs would be greatly appreciated.

Thanks a lot for your help.

Best regards,
Daniel


Any information in this communication is confidential and may be privileged or otherwise protected from disclosure without our consent. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. You are requested to please telephone or email the sender and delete this message and any attachment from your system.
	
Due to the electronic nature of e-mail, there is a risk that the information contained in this message has been modified. Consequently we can accept no responsibility or liability as to the completeness or accuracy of the information.
    
A-03-03-E


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index