If its ok to use lattice try this:
library(lattice)
# no attach needed
# we want VC to be first level, not OJ
ToothGrowth$supp <- relevel(ToothGrowth$supp, "VC")
# rename levels
levels(ToothGrowth$supp) <- c("A", "B")
# plot
dotplot(len ~ supp | dose, ToothGrowth, layout = c(3, 1))
On Nov 20
Hi all,
I I need to manipulate the x axis in a stripchart.
I will use one of the data sets included in R to
explain what I need to do.
attach(ToothGrowth)
stripchart(len[supp=='VC']~dose[supp=='VC'],
vertical=TRUE, group.names=c('A','A','A'))
stripchart(len[supp=='OJ']~dose[supp=='OJ'], add=
2 matches
Mail list logo