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: hbox line


From   vwiggins@stata.com (Vince Wiggins, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: hbox line
Date   Wed, 24 Feb 2010 11:45:20 -0600

Jordan <drreg@earthlink.net> is having trouble using the option -yline()- with
-graph hbox-,

> I know how to insert a line into a box plot: graph b ox var
> yline(value). According to Hamilton (Statistics with Stat v9), you
> could do the same using hbox. Apparently one cannot use this command
> with Stata11. 

Michael Mitchell <Michael.Norman.Mitchell@gmail.com> has correctly identified
this as a bug that occurs in Stata 11, but not in Stata 10, 

> I ran -graph hbox bp, yline(10)- and the line was placed
> horizontally on the graph in Stata version 11. When I ran the
> command -graph hbox bp, yline(130)- in Stata 10, the line was placed
> vertically. Methinks there is some misbehavior with -graph hbox- and
> -yline()- in Stata version 11.

In replying to Friedrich Huebler's <fhuebler@gmail.com> post about zero lines
for dot charts. 

Michael found the same misbehavior of the -yline()- option when using 
-graph dot-.  Indeed, -yline()- is not working properly on -graph hbox-,
-graph hbar-, and -graph dot-.

This will be fixed in the next update.

Martin Weiss <martin.weiss1@gmx.de> suggested using the Graph Editor to add
such lines, and that is indeed the best workaround until the next Stata
update.

-- Vince 
   vwiggins@stata.com

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