Treatment | Measurement |
---|---|
A | 2 |
A | 3 |
A | 4 |
B | 8 |
B | 9 |
B | 7 |
b <- describeBy(a$V2, list(a$V1), mat=T)
par(mar=c(5, 4, 4, 2)) #x軸のラベルが切れる場合は1要素目を変更
c <- barplot(b$mean, names.arg=b$group1, ylim=c(0,max(b$mean+b$se)), las=3)
arrows(c, b$mean-b$se, c, b$mean+b$se, angle=90, length=0.1)
arrows(c, b$mean+b$se, c, b$mean-b$se, angle=90, length=0.1)
a <- read.delim("clipboard", header=F)