1 min read

Connect points together in base plot

Setting type attribute in plot() would allow connecting points together.

Working example:

x<-1:10; y=x*x
plot(x, y, type="o")

For more examples setting type attribute, see this post.