Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -twoway- inconsistency


From   Lee Sieswerda <Lee.Sieswerda@tbdhu.com>
To   "Statalist (statalist@hsphsun2.harvard.edu)" <statalist@hsphsun2.harvard.edu>
Subject   st: -twoway- inconsistency
Date   Thu, 13 Nov 2003 14:13:48 -0500

Hi all:
I'm not sure if this meets the definition of a bug, but it is an
inconsistency.

If I type the following:
collapse (mean) price, by(rep78)
twoway (scatter price rep78, mlabel(price))
I get a graph with five labeled points, just as expected.

If I change this syntax from a scatter plot to a bar plot:
 twoway (bar price rep78, mlabel(price))
I would expect either:
(1) To get a bar plot with five labeled bars, or
(2) An error message telling me that the -mlabel- option is not acceptable
here

While I would much prefer to get (1), I think (2) is the only other
reasonable alternative, since mlabel is not a supported option for -twoway,
bar-. Unfortunately, I get neither. I get a bar plot with no bar labels and
no error message. Do others find the same thing? And, if so, is there a
reason for this seeming inconsistency?

(And yes, I know there is a workaround overlaying the barplot with a scatter
plot showing only the labels.)

Regards,
Lee

Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
Lee.Sieswerda@tbdhu.com

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index