Statalist


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

st: -tabplot- updated from SSC


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: -tabplot- updated from SSC
Date   Wed, 25 Nov 2009 18:34:34 -0000

Thanks to Kit Baum, the package -tabplot- has been updated on SSC.
-tabplot- requires Stata 8. To install or update, use -ssc- or
-adoupdate- as appropriate. 

-tabplot- is mundane, but a basic tool. It draws bar charts for
contingency tables, but using a table layout. A particular feature is
that you can show values (meaning, frequencies or percents) as text in
the body of the display, thus hybridising graph and table. I call the
result a table plot, although identical or similar displays are
long-established and also continue to appear under other names. A -by()-
option makes possible graphical display of three-way contingency tables.


-tabplot- is a sister of -catplot-, also on SSC, whose aim is similar:
to do two things at once, calculate categorical frequencies or percents,
and then show an associated graph. (It may seem surprising that official
Stata doesn't include any such command.) A fundamental difference is
that -catplot- is a wrapper for -graph bar|hbar|dot- while -tabplot- is
a wrapper for -twoway-. Also, -catplot- is going nowhere (the code
hasn't been touched since 2004), while -tabplot- has all my affections
under this heading. 

What's new: 

-tabplot- now permits specification of just one variable to create a
one-way bar chart. (With -by()- as well, that's a different way to plot
a two-way table.) 

The -showval()- option now permits specification of another variable to
show as text. 

Several references have been added to the help. 

Nick 
n.j.cox@durham.ac.uk 


*
*   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   |   What's new   |   Site index