Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: updates to -tabplot- and -tableplot- on SSC

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: updates to -tabplot- and -tableplot- on SSC
Date   Wed, 27 Oct 2004 18:36:06 +0100

Thanks to Kit Baum, the -tabplot- and -tableplot- 
packages on SSC have been updated. 

The main purpose of these programs is to display twoway 
tables as arrays of bars with heights proportional to the 
values of cell frequencies or percents (-tabplot-) or 
of a third variable (-tableplot-). 


tabplot foreign rep78 

gives you a graphical display of the frequencies of the 
combinations of -foreign- and -rep78-, and 

egen meanprice = mean(price), by(foreign rep78) 
label var meanprice "mean price, USD" 
tableplot meanprice foreign rep78 

gives a graphical display of mean price for each 
such combination. 

The updating gives support to a -showval- option 
which adds the numbers to the display by each bar, 
thus enhancing the hybrid character of a tabular graph 
or a graphical table. 

In at least some circumstances, the displays can be 
friendlier than arrays of stacked (divided) bars. 

There was some discussion of these programs in Stata 
Journal 4(2) (2004). 

[email protected] 

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index