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: Histogramm Graph option Note


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Histogramm Graph option Note
Date   Mon, 22 Apr 2013 19:14:59 +0100

Not wrong in principle:

. sysuse auto
(1978 Automobile Data)

. hist mpg, by(foreign, note(" "))
parentheses do not balance
r(198);

. twoway histogram mpg, by(foreign, note(" "))

-hist- is not a one-to-one synonym for -twoway histogram-, but I can't
see a reason for different behaviour here. That looks like a small bug
in -hist-, actually -histogram-.


Nick
njcoxstata@gmail.com


On 22 April 2013 17:37, Meulemann  Max <mmeulemann@ethz.ch> wrote:
> Thx,
>
> so the blank in between the parentheses was wrong...
>
> Thx again to you and Joerg
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nick Cox
> Gesendet: Montag, 22. April 2013 16:51
> An: statalist@hsphsun2.harvard.edu
> Betreff: Re: st: Histogramm Graph option Note
>
> sysuse auto
> hist mpg, by(foreign, note("")) discrete
>
> will work.
>
> Nick
> njcoxstata@gmail.com
>
>
> On 22 April 2013 15:45, Meulemann  Max <mmeulemann@ethz.ch> wrote:
>>
>> this is a rather simple questions about a histogram with the by option. I would just like to avoid the note that says "Graphs by ..." below the graph because I am combining several graphs and it is just consuming space.
>>
>> Im using stata 12 and an example would be
>>
>> sysuse auto
>> hist mpg, by(foreign) discrete
>>
>> which yields a histogram with a note below that says "Graphs by Car type"
>>
>> I was hoping to get rid of it by
>>
>> hist mpg, by(foreign) discrete  by(, note(off))
>>
>> but then the note says "off"
>>
>> he doesn't like
>>
>> sysuse auto
>> hist mpg, by(foreign) discrete  by(, note(" "))
>>
>> either. Maybe someone else wanted to avoid printing the note as well and so far I haven't found a way to suppress it, but it should be possible or not?
>>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index