I would like to plot y1 and y2 in the same plot.
x <- seq(-2, 2, 0.05) y1 <- pnorm(x) y2 <- pnorm(x, 1, 1) plot(x, y1, type = \"l\", col = \"red\")
if you want to split the plot into two columns (2 plots next to each other), you can do it like this:
par(mfrow=c(1,2)) plot(x) plot(y)
Reference Link