Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Adjacent columns using Catplot

From   "Polly Casey" <>
To   <>
Subject   st: Adjacent columns using Catplot
Date   Wed, 23 Oct 2013 19:05:42 +0100


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?

Many thanks,



Dr Polly Casey
Parents In Conflict Study Coordinator
Research & Data Manager
The Tavistock Centre for Couple Relationships
70 Warren Street
London W1T 5PB
Direct line 020 7380 6097

supporting couples · strengthening families · safeguarding children                    
This e-mail and any files transmitted with it contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error, please delete it and immediately notify the sender. This e-mail does not necessarily reflect the views of The Tavistock Centre for Couple Relationships or its Trustees. The Tavistock Centre for Couple Relationships is part of The Tavistock Institute of Medical Psychology which is registered in England as a Company Limited by Guarantee;  Registered in England & Wales No 2411618. Registered Charity No .211058. 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index