Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: RE: Adjacent columns using Catplot |
Date | Wed, 23 Oct 2013 19:39:25 +0100 |
-catplot- (SSC) is a user-written program somehow reflecting the author's moderate fondness for cats as well as a focus on categorical data, or so I am told. I join Liz Allred in asking to see more details here. It is (twice) mentioned in the help that -asyvars- may be specified. Nick njcoxstata@gmail.com On 23 October 2013 19:17, Allred, Elizabeth <lizard@hsph.harvard.edu> wrote: > Could you show is a little snippet of data and the exact command you typed? Polly Casey > I have searched the statalist and the internet at large for a way to solve this problem but have yet to figure this out! Help needed... > > I have a categorical variable, "Fee Paid", which is the fee paid by clients for clinical sessions in bands of £10. To plot the frequency of each category I have downloaded and used Catplot. To break this down according to the time of the session (morning, afternoon, and evening), I have used the 'by' command. This produces three separate bar graphs, one for morning (M), afternoon (A), and evening (E). However, I would like to produce one bar graph with all three session times next to one another for each band of payment, as below: > > > | | > | | | | > | | | | | | > | | | | | | > M A E M A E > £10-£20 £21-£30 and so on... > > > Is there a way to do this? Preferably with all the 'morning' columns in the same colour, and all the afternoon' columns in the same colour etc. With continuous data I would use the aysvars option, is there an equivalent for catplot? > * * 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/