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/