[R] boxplot - how to supress groups with low counts

2011-01-28 Thread pdb
In a boxplot - how can I prevent groups where the number of cases is less than a set threshold from being plotted. set.seed(42) DF - data.frame(type=sample(LETTERS[1:5], 100, replace=TRUE), cost=rnorm(100)) count - boxplot(cost ~ type, data=DF, plot = 0) count$n ## how to only include

Re: [R] boxplot - how to supress groups with low counts

2011-01-28 Thread Uwe Ligges
On 28.01.2011 14:21, pdb wrote: In a boxplot - how can I prevent groups where the number of cases is less than a set threshold from being plotted. set.seed(42) DF- data.frame(type=sample(LETTERS[1:5], 100, replace=TRUE), cost=rnorm(100)) count- boxplot(cost ~ type, data=DF, plot = 0)

Re: [R] boxplot - how to supress groups with low counts

2011-01-28 Thread Peter Ehlers
On 2011-01-28 06:09, Uwe Ligges wrote: On 28.01.2011 14:21, pdb wrote: In a boxplot - how can I prevent groups where the number of cases is less than a set threshold from being plotted. set.seed(42) DF- data.frame(type=sample(LETTERS[1:5], 100, replace=TRUE), cost=rnorm(100)) count-