kohske/ggplot2 — pull request #18 by wch (2012-06-26 04:51:33+00:00)
Title: Modifications to feature/stat ecdf

I've modified it so that if there are fewer than `n` cases, it doesn't interpolate, but if there are more than `n` cases, it interpolates.

I also increased `n` to 200, because I think 101 isn't enough. You can see that the difference is quite visible when it switches from non-interpolated to interpolated when `n` is about 100:

```R
set.seed(32)
dat <- data.frame(x = rnorm(100))

# Non-interpolated
ggplot(dat, aes(x)) + stat_ecdf(n = 100)

# Interpolated
ggplot(dat, aes(x)) + stat_ecdf(n = 99)
```

I also moved the icon code to staticdocs.r.