If you just want to build, for example, the first row of a table or data in the second, third and fourth, you can use
par(mfrow=c(1,3)) apply(iris[,2:4], 2, plot, x=iris[,1], xlab="x", ylab="y")
Or, alternatively, a for loop might be nice if you want to have control over axis labels, etc.:
par(mfrow=c(1,3)) for (i in 2:4){plot(iris[,1], iris[,i], xlab="iris data column #1", ylab=paste("iris data column #", i), main=paste("iris col 1 vs col ", i))}

You might be interested in the scatterplotMatrix function from car packages.
source share