Bookmark and Share

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: Re: Problem with -graph bar- and yscale(log) option


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Re: Problem with -graph bar- and yscale(log) option
Date   Wed, 5 Oct 2011 15:37:26 +0200

On Wed, Oct 5, 2011 at 3:23 PM, Aleksander Rutkowski wrote:
> I am using Stata/SE 11.2 on Windows. I have noticed that using -graph
> bar- with yscale(log) option produces very bad results: bars of equal
> height with unreadable y-axis labels (overlaid at the same point). As
> an illustration:
>
> sysuse auto
> graph bar (mean) trunk, over(foreign) yscale(log)
>
> Is it a bug or am I doing something wrong?

Such bar graphs by default include 0 on the y-axis, which makes sense
for such graphs but does not have an equivalent on a log-scale leading
to the problem you noticed. You can avoid 0 by adding the -exclude0-
option, but now it is up to you to decide whether that graph still
makes sense.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index