Skip to content
Prev 257814 / 398502 Next

Vertical bwplot and stripplot

On 2011-04-23 07:13, David Neu wrote:
You can define a 'phantom' single-level factor

   my.df$fac <- rep("", 100)
   stripplot(x ~ fac | y, data = my.df, layout = c(1, 3))

and I'd consider 'jitter'.

BTW, your method of generating 'y' seems overly complicated:

   y <- sample(c("A","B","C"), 100,
               replace=TRUE,
               prob=c(1/2, 1/3, 1/6))

Peter Ehlers