Skip to content

Commit 28f8ae4

Browse files
committed
Adjust the position of ... in geom_density2d.
Fixes #1485
1 parent 86ed191 commit 28f8ae4

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 2.0.0.9000
22

3+
* The position of `...` in `geom_density2d()` has been adjusted so you can
4+
set the `n` parameter (#1485).
5+
36
* The default scale for columns of class "AsIs" is now "identity" (#1518).
47

58
* `geom_boxplot()` now understands `outlier.color` (#1455).

R/geom-density2d.r

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
#' d + stat_density_2d(geom = "point", aes(size = ..density..), n = 20, contour = FALSE)
3636
#' }
3737
geom_density_2d <- function(mapping = NULL, data = NULL, stat = "density2d",
38-
position = "identity", lineend = "butt",
39-
linejoin = "round", linemitre = 1,
40-
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE,
41-
...) {
38+
position = "identity", ...,
39+
lineend = "butt", linejoin = "round", linemitre = 1,
40+
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE) {
4241
layer(
4342
data = data,
4443
mapping = mapping,

man/geom_density_2d.Rd

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)