Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: hbox line

From (Vince Wiggins, StataCorp)
Subject   Re: st: hbox line
Date   Wed, 24 Feb 2010 11:45:20 -0600

Jordan <> 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 <> 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 <> 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 <> suggested using the Graph Editor to add
such lines, and that is indeed the best workaround until the next Stata

-- Vince

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index