About this question
How can I plot two graphs in same plot in R, I am using this command to perform my task but it isn’t working.
x <- seq(-3, 4, 1.05)
y1 <- pnorm(x)
y2 <- pnorm(x, 2, 2)
plot(x, y1, type = "2", col = "blue")
plot(x, y2, type = "l", col = "yellow")
How R plot two graphs on top of each other? Please help me with it.