Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: How to place text inside a bar chart / Stata 8 SE - win2k


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: How to place text inside a bar chart / Stata 8 SE - win2k
Date   Thu, 24 Jul 2003 18:40:40 +0100

Dr. Wolfram an der Heiden, Dipl.-Psych.
>
> I have produced the following simple bar chart:
>
> graph bar (asis) exper contrl, over(task) .....
>
> where exper and contrl show the percentage of people in a
> patient and in a
> control group above a certain cutpoint in 6 different scales (task).
> Everything works fine, as a result I get a 6 times 2 bar chart.
> Now the problem: I would like to insert some explanatory
> text inside the
> graph with the added_text_option:
>
> text(#y #x "text")
>
> Unfortunately, as this is not a two-way graph #x will be
> ignored. How can I
> locate a text box relative to one of the 6 specific 'task' bars?

You can make progress by adding

legend(on order(- "text") ring(0) pos(12))

but whether that gets you all the way I don't know.

Alternatively, use -twoway bar-.

Nick
[email protected]

*
*   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