ggplot2 - ggplot - Using xlim / ylim in ggplot2 - ggplot2 tutorial - ggplot tutorial
- Using xlim or ylim the plot is not cutted, ggplot subsets the data before calling the stat function (stat_density in this case). You can see it in the warning message.