Question: My problem is the following:
Inside my urls.py I have defined these url patterns:

```
url(r'^image/upload', 'main.views.presentations.upload_image'),
url(r'^image/upload-from-url', 'main.views.presentations.upload_image_from_url'),

```

the problem is when I call from my browser the URL
 myowndomain:8000/image/upload-from-url
Django always execute the first pattern (r'^image/upload')

Is there any solution to my problem?

Answer: 
The package `latticeExtra` provides the function [`ecdfplot`](http://latticeextra.r-forge.r-project.org/#ecdfplot).

```
library(lattice)
library(latticeExtra)

set.seed(42)
vals <- data.frame(r1=rnorm(100)*0.5,
                   r2=rnorm(100),
                   r3=rnorm(100)*2)

ecdfplot(~ r1 + r2 + r3, data=vals, auto.key=list(space='right')

```

![ecdfplot with legend](https://i.stack.imgur.com/la4hT.png)
Here is an approach using `ggplot2` (using the ecdf objects from [Dirk's answer])(<https://stackoverflow.com/a/20601807/1385941>)

```
library(ggplot2)
# create a data set containing the range you wish to use
d <- data.frame(x = c(-6,6))
# create a list of calls to `stat_function` with the colours you wish to use

ll <- Map(f  = stat_function, colour = c('red', 'green', 'blue'),
          fun = list(ecdf1, ecdf2, ecdf3), geom = 'step')

ggplot(data = d, aes(x = x)) + ll

```

![enter image description here](https://i.stack.imgur.com/QkjlL.png)