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 on April 23, and its replacement, statalist.org is already up and running.


[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 <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index