Skip to content
Prev 646 / 7420 Next

plotting numeric v. factor variables

Hi Bessie,

library(lattice)
x <- rep(1:3, each=20)
y <- rnorm(60, x)
x <- c('level1', 'level2', 'level3')[x]
stripplot(y ~ x)

# or perhaps

stripplot(x ~ y, jitter=TRUE)



Kingsford Jones
On Fri, Jun 5, 2009 at 5:02 PM, bessie green<bessie.bug at gmail.com> wrote: