Re: [R] Grouping and stacking bar plot for categorical variables

2010-07-20 Thread Jim Lemon
On 07/19/2010 11:36 PM, Simon Kiss wrote: Hi all, I have a series of cateogiral variables that look just like this: welfare=sample(c("less", "same", "more"), 1000, replace=TRUE) education=sample(c("less", "same", "more"), 1000, replace=TRUE) defence=sample(c("less", "same", "more"), 1000, replac

Re: [R] Grouping and stacking bar plot for categorical variables

2010-07-19 Thread David Winsemius
On Jul 19, 2010, at 9:36 AM, Simon Kiss wrote: Hi all, I have a series of cateogiral variables that look just like this: welfare=sample(c("less", "same", "more"), 1000, replace=TRUE) education=sample(c("less", "same", "more"), 1000, replace=TRUE) defence=sample(c("less", "same", "more"), 1000,

[R] Grouping and stacking bar plot for categorical variables

2010-07-19 Thread Simon Kiss
Hi all, I have a series of cateogiral variables that look just like this: welfare=sample(c("less", "same", "more"), 1000, replace=TRUE) education=sample(c("less", "same", "more"), 1000, replace=TRUE) defence=sample(c("less", "same", "more"), 1000, replace=TRUE) egp=sample(c("salariat", "routine n