Re: [R] How to sort frequency distribution table?

2012-03-09 Thread Greg Snow
R tends to see the ordering of factor levels as a property of the data rather than a property of the table/graph. So it is generally best to modify the data object (factor) to represent what you want rather than look for an option in the table/plot function (this will also be more efficient in

Re: [R] How to sort frequency distribution table?

2012-03-08 Thread Jim Lemon
On 03/08/2012 03:46 PM, Manish Gupta wrote: Hi, I am working on categorical data with column as disease name(categaory). My input data is [1] Acute lymphoblastic leukemia (childhood) [2] Adiponectin levels [3] Adiponectin levels [4] Adiponectin levels [5] Adiponectin levels [6]

Re: [R] How to sort frequency distribution table?

2012-03-08 Thread John Kane
-help@r-project.org Subject: [R] How to sort frequency distribution table? Hi, I am working on categorical data with column as disease name(categaory). My input data is [1] Acute lymphoblastic leukemia (childhood) [2] Adiponectin levels [3] Adiponectin levels [4] Adiponectin levels

[R] How to sort frequency distribution table?

2012-03-07 Thread Manish Gupta
Hi, I am working on categorical data with column as disease name(categaory). My input data is [1] Acute lymphoblastic leukemia (childhood) [2] Adiponectin levels [3] Adiponectin levels [4] Adiponectin levels [5] Adiponectin

Re: [R] How to sort frequency distribution table?

2012-03-07 Thread Petr PIKAL
Hi Just order your table output. xx-sample(letters[1:5], 100, replace=T) yy-table(xx) barplot(yy[order(yy, decreasing=T)]) Regards Petr Hi, I am working on categorical data with column as disease name(categaory). My input data is [1] Acute lymphoblastic leukemia (childhood)