Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Dot chart with line at 0


From   Michael Norman Mitchell <Michael.Norman.Mitchell@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Dot chart with line at 0
Date   Tue, 23 Feb 2010 17:27:04 -0800

Dear Friedrich

This graph seems to be suffering the same problem as "graph hbox" is suffering, see

http://www.stata.com/statalist/archive/2010-02/msg01022.html

  In Stata 10, you could type

clear all
input str5 area value
"Urban" 10
"Rural" -5
end
graph dot value, over(area) yline(0)

and it draws a vertical line at 0. But, in version 11, it inappropriately (I believe) draws a horizontal line below urban.

  Until this is mended, you can use the graph editor to insert such a line.

Best regards,

Michael N. Mitchell
See the Stata tidbit of the week at...
http://www.MichaelNormanMitchell.com
Visit me on Facebook at...
http://www.facebook.com/MichaelNormanMitchell

On 2010-02-23 4.56 PM, Friedrich Huebler wrote:
Consider the graph below.

clear all
input str5 area value
"Urban" 10
"Rural" -5
end
graph dot value, over(area)

Is it possible to draw the vertical axis at 0? I am familiar with the
arguments against such a display.

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index