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: Dot chart with line at 0
From
Friedrich Huebler <[email protected]>
To
[email protected]
Subject
Re: st: Dot chart with line at 0
Date
Wed, 24 Feb 2010 10:46:18 -0500
Thank you, Michael. I found that -stripplot- from SSC can draw a
vertical line at 0.
clear all
input str5 area value
"Urban" 10
"Rural" -5
end
stripplot value, over(area) xline(0)
Friedrich
On Tue, Feb 23, 2010 at 8:27 PM, Michael Norman Mitchell
<[email protected]> wrote:
> 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/