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

st: RE: catplot


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: catplot
Date   Mon, 8 Dec 2003 14:52:30 -0000

I don't think so. As in an earlier thread, 

. gen freq = 1 
. graph bar (sum) freq, over(myvar, sort(1)) 

gives you something like this, but -catplot- 
doesn't give you a handle for inserting 
", sort(1)" into the 

"over( ) ..." 

stuff it generates on your behalf. 

I played a little with how this might be 
done in -catplot-, but I seem to be hitting either 
bugs in -graph- or bugs in my understanding of it.  

Nick 
[email protected] 

Fred Wolfe
 
> Does anyone know a way to add a sort to -catplot-
> 
> I have 5 categories and frequencies (hypothetical example):
> 
> 1 23
> 2 11
> 3 45
> 4 12
> 5 16
> 
> I want to graph to display in the following order.
> 2 11
> 4 12
> 5 16
> 1 23
> 3 45
> 
> Is this possible using -catplot-?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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