Hello, I have a code that draws 2 graphs like following :
plot(seq(-5, 5, 0.05), (1/(1+exp(-seq(-5, 5, 0.05)))),
xlab = 'x', ylab = 'y', type='l', main="Cumulative Distribution")
plot(seq(-5, 5, 0.05), pnorm(seq(-5, 5, 0.05), mean=0, sd=1),
xlab = 'x', ylab = 'y', type='l', main="Cumulative Distribution")
I want to merge these, but with different colors, so I can compare two graphs' formation. I guess I can solve this with ggplot2 package, but don't have any idea to go further. I would be appreciate if you tell me a solution.