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: line on top of bar graph
From
Jeph Herrin <[email protected]>
To
[email protected]
Subject
Re: st: line on top of bar graph
Date
Thu, 18 Feb 2010 10:01:40 -0500
Martin, Scott:
Thanks for the suggestions. However, my actual graph is much
more complicated than my example, and can't easily be kludged as
Martin suggests; moreover, I have to generate hundreds of these
for separate (automated) reports, and manual editing is not
a practical solution. Any other ideas?
Jeph
Scott Merryman wrote:
You could use the graph editor to add a line on top of the bars.
Scott
On Thu, Feb 18, 2010 at 7:46 AM, Jeph Herrin <[email protected]> wrote:
There must be a way to do this, but I can't seem to
make it happen.
I have a simple bar graph:
clear
set obs 1
gen var1=40
gen var2=60
graph bar var1 var2, bargap(20)
and I want to add a reference line
graph bar var1 var2 , bargap(20) yline(30)
The problem is, the added line goes *behind* the bars, and is
mostly invisible. I want -yline- to go on top of the bars, but
no combinatin of -yline- options or styles seems to make this
happen. Any ideas?
thanks,
Jeph
*
* 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/
*
* 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/