How can I modify this code to have all plots together and on one page(loop function)? In my real data set, I want to have the scatter plot between the dependent variable and 10 independent variables. The scatter plot between the dependent variable and each IV separately.
plot(rock$area, rock$peri)
plot(rock$area, rock$shape)
plot(rock$area, rock$perm)
par(mfrow=c(1,3))
– G5Wplot
for a variable name. – neilfws