0

Can anybody tell how can I put the two cumulative distribution curve in a same plot?

While executing this command:

plot(x,pweibull(x,shape=1.120662,scale=18.496778),type="l",col=4)
plot(ecdf(SIZEDIST$AVG.µm.),add=TRUE)

the Weibull cdf curve is appeared in some unexpected form. It is not what I was expecting.
I need the first curve as smooth line and the second ecdf curve as step.

Andre Silva
  • 4,782
  • 9
  • 52
  • 65
user2968058
  • 25
  • 2
  • 11

1 Answers1

0

Use function lines

plot(ecdf(rnorm(20)),col='red')
lines(ecdf(rnorm(10)),col='blue')
Maciej
  • 3,255
  • 1
  • 28
  • 43