qplot()

library("ggplot2", lib.loc="~/R/win-library/3.3")

square <- data.frame(x = c(1,3,3,1, 1), y=c(1,1,3,3, 1), row.names = NULL)
qplot (x, y, data = square, geom = c("point", "path"), size = I(1.5), color = I("red"), alpha = I(.5), xlim = c(-1, 4), ylim = c(0, 3.3), main = "Square", xlab = "X label", ylab ="Y label")

“path” goes in any direction, “line” only goes left to right.