2015-10-13 40 views

回答

1

你可以使用该选项来做一个步骤情节(我认为这是你以后?)。这是通过的type="s"选项完成的。

set.seed(0) 
dat <- data.frame(x=sample(10), y=sample(10)) 
plot(dat[order(dat$x),], type="s") 
points(dat, pch=16, col="steelblue") 

enter image description here