s-news
[Top] [All Lists]

aligning frequency plots?

To: s-news@lists.biostat.wustl.edu
Subject: aligning frequency plots?
From: Elizabeth Merrall <elizabeth.merrall@mrc-bsu.cam.ac.uk>
Date: Fri, 30 May 2008 12:46:47 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Hello,
I wonder if anyone can help. I have four frequency distribution tables like this:

table(caReCust)

5 7 8 11 14 20 21 28 30 35 38 40 42 45 49 56 60 63 70 77 80 82 84 90 91 98 100 105 112 120 126 136 140 147 150 154 168 175 180

3 23 1 1 41 2 26 156 114 8 1 1 97 1 2 82 423 2 35 2 2 1 61 620 2 14 1 3 35 598 7 1 24 1 204 9 6 1 106

The frequency categories correspond to number of days.
And the frequency categories are not necessarily the same across all 4 frequency tables, i.e. 5 days occurs in the table shown, but not in the other tables. I would like to plot the frequency distributions side by side, vertically, but so that the main categories 30 days, 60 days, 90 days, 12 days, etc. are aligned.

I was thinking to set up "dummy" categories so that the frequency categories are the same across all 4 tables.
But wondered whether anyone on the list had more efficient ideas.....
Hope someone might be able to help,
Elizabeth

--
Elizabeth Merrall
MRC Biostatistics Unit
Robinson Way
CAMBRIDGE CB2 0SR

Phone: 44-1223-330392
Fax:   44-1223-330388
email: elizabeth.merrall@mrc-bsu.cam.ac.uk

<Prev in Thread] Current Thread [Next in Thread>
  • aligning frequency plots?, Elizabeth Merrall <=