Suppose I have a data frame like below
mydf=data.frame(method=factor(1:10), x1=rpois(10,2), x2=round(rnorm(10),3), x3=rgeom(10,0.3))
I would like to make a dot plot of all variables from X1
through X3
in the same figure. I tried the following code
plot(mydf$x1~rep(1,10), xlab="", ylab = "")
plot(mydf$x2~rep(2,10), xlab="", ylab = "")
plot(mydf$x3~rep(3,10), xlab="", ylab = "")
How can I plot them in single figure?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…