Bookmark and Share

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: Inserting percent and currency symbols in graphs


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: Inserting percent and currency symbols in graphs
Date   Tue, 24 Jul 2012 14:33:05 -0500

It is not clear how you want to label these bar, lines, and points.
Using a simulated data set or one of the example dataset installed
with Stata would be helpful.

One way would be to use the text() option, see -help graph text-.  For example:

. sysuse auto
(1978 Automobile Data)

. scatter mpg price , text(30 12000  "{c Y=} Yen"  "{c L-} Pound
Sterling" "{c 0128} Euro" "$ Dollar"  )

Scott


On Tue, Jul 24, 2012 at 1:05 PM, Carolina Herrera
<[email protected]> wrote:
> Dear list users,
>
> this question has come up before, but I am asking again as I hope
> Stata 12 has an enhancement or that someone has written a new package.
>
> I will be doing a number of reports this year and am trying to
> automate graphics creation. I will be creating over 100 graphs with
> percentages and currency levels.  The reports are for a non-specialist
> audience (i.e. the public) and I want to be as explicit as possible.
> That means labeling lines, points, bars, etc. with the currency and
> percentage symbols as needed.
>
> While I could manually add in the percent and currency signs I need
> for graphs using the Graphics Editor, I would like to be able to sleep
> at some point in the next three months.  I would much prefer
> programming my .do file to insert those symbols for me. Short of
> converting all my data from numeric to character and using -mylabel-,
> or having someone else do manual editing, is there a command line
> solution to my problem?
>
> I need to be able to label within a graph for figures that use -graph
> bar-,  -twoway tsline-, and -twoway xtline-.
>
> thank you!
> Carolina
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index