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

st: Re: legend of -graph pie-


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: legend of -graph pie-
Date   Thu, 30 Oct 2003 07:12:06 -0800 (PST)

Uenohara-san,

The legend includes all values of the -over- variable (including
missing) by default, as you can see by trying this command:

. graph pie if rep78<4, over(rep78) by(foreign)

I do not know if this behavior is intended. You can suppress the
unwanted legend entries with the -legend(order)- option.

. graph pie, over(rep78) by(foreign) legend(order(1 2 3 4 5))

Friedrich Huebler

--- UENOHARA Hideaki <[email protected]> wrote:
> Dear all.
> 
> After updating the executable and ado-files, I have found -graph
> pie-
> behaves peculiarly with respect to the legend.
> 
> The problem is as follows:
> 
> . sysuse auto.dta
> . graph pie, over(rep78) by(foreign)
> 
> produces a pie chart whose legend has an extra key which
> corresponds to
> missing values. On the other hand
> 
> . graph pie, over(rep78)
> 
> does not.
> 
> Does anyone replicate this bahavior? If yes, how can I avoid it?
> 
> ---
> UENOHARA Hideaki, LL.M. <[email protected]>
>  Doctoral Student, Graduate School of Law & Politics,
>  The University of Tokyo

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index