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]
AW: st: AW: tabplot how to get rid of Graphs by ?
From
"Kaulisch, Marc" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
AW: st: AW: tabplot how to get rid of Graphs by ?
Date
Fri, 7 Jun 2013 10:56:33 +0000
Hi Nick,
thanks for your reply. The problem I have is that with by(, total) all 16 graphs are combined into total (at least if I understand help by_options correctly). This seem to imply that also the showval are repeated (in my case 16 times) within the total. The values are basically not readable anymore. Either I would like to suppress the showval for the total only or that the total is not overlaying all 16 graphs but produces a new one that provides the total data .
As I do not see any options to get both things done with the twoway_options - I try the addplot option.
Marc
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Nick Cox
Gesendet: Freitag, 7. Juni 2013 12:03
An: [email protected]
Betreff: Re: st: AW: tabplot how to get rid of Graphs by ?
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/
*
* 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/