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 at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: AW: tabplot how to get rid of Graphs by ?


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: AW: tabplot how to get rid of Graphs by ?
Date   Fri, 7 Jun 2013 11:03:17 +0100

Sorry, but I don't understand the question.

If you add the suboption -total-  to -by()-

1. -tabplot- itself does nothing special. You are just relying on what
-twoway- does in those circumstances.

2. In your example, the values shown for the -total- case are totals
over percents, and so just 100% in every instance. That's reassuring,
but it's not interesting or informative.

Nick
njcoxstata@gmail.com


On 7 June 2013 10:28, Kaulisch, Marc <kaulisch@forschungsinfo.de> wrote:
> Hi Nick,
>
> a brief follow-up:
> In my own dataset the by-variable has 16 values. If I add the total option then the values are not readable in the total.
> So my question is: Is possible to present the total percent and not each single percent of the 16 different values? If this is not possible would it be possible to suppress the showval for the total only?
>
> My own example simplified:
> Webuse auto, clear
> Tabplot foreign rep78, by(make, total) showval percent(foreign make)
>
> Thanks!
>
> Marc
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nick Cox
> Gesendet: Freitag, 7. Juni 2013 01:08
> An: statalist@hsphsun2.harvard.edu
> Betreff: Re: st: AW: tabplot how to get rid of Graphs by ?
>
> That's correct. -tabplot- is one of mine but here the answer is just to use details of Stata's standard -by()- syntax for -twoway.
>
> Nick
> njcoxstata@gmail.com
>
> On 6 June 2013 23:21, Kaulisch, Marc <kaulisch@forschungsinfo.de> wrote:
>
>> Okay, I found it myself. Reading the manual more carefully helps:
>> Solution is:
>> webuse rate2, clear
>> tabplot pop, percent showval by(rada, note(""))
>
> Kaulisch, Marc
>
>> I have a small question: I would like to do some graphs with tabplot (from ssc).
>> Example code is:
>> webuse rate2, clear
>> tabplot pop, percent showval by(rada) note("") caption("") title("")
>> subtitle("")
>>
>> With this code I get a caption, note or whatever saying Graphs by Radiologist A's assessment.
>> Is there any way that I can get rid of this caption/note/title?
>>
>> I know that I can use the Graph Editor to delete it and play the record again and again - but I think it would be smoother to do it within the code itsef.
> *
> *   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