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: AW: tabplot how to get rid of Graphs by ?


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
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
[email protected]


On 7 June 2013 10:28, Kaulisch, Marc <[email protected]> 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: [email protected] [mailto:[email protected]] Im Auftrag von Nick Cox
> Gesendet: Freitag, 7. Juni 2013 01:08
> An: [email protected]
> 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
> [email protected]
>
> On 6 June 2013 23:21, Kaulisch, Marc <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index