Skip to content
Prev 310301 / 398503 Next

Produce "a prism like plot"

On 11/08/2012 11:48 PM, DusanP wrote:
Hi Dusan,
Your first two questions are relatively easy:

library(plotrix)
data(iris)
ehplot(iris$Sepal.Length, iris$Species, intervals=20,
  cex=1.8, pch=4,median=FALSE)
irismeans<-as.vector(by(iris$Sepal.Length,iris$Species,
  FUN=mean))
segments(c(0.7,1.7,2.7),irismeans,c(1.3,2.3,3.3),irismeans)

For your third question (number 2 above) I'll have to dig into the code, 
so I may have an answer this afternoon (Sydney time).

Jim