Skip to content

Commit 994e401

Browse files
authored
Corrects bins / binwidth override documentation (#4720)
Fixes #4651
1 parent 020e852 commit 994e401

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656

5757
* `geom_contour()` now accepts a function in the `breaks` argument (@eliocamp, #4652).
5858

59+
* Updated documentation for `geom_contour()` to correctly reflect argument
60+
precedence between `bins` and `binwidth`. (@eliocamp, #4651)
61+
62+
5963
# ggplot2 3.3.5
6064
This is a very small release focusing on fixing a couple of untenable issues
6165
that surfaced with the 3.3.4 release

R/geom-contour.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#' @inheritParams layer
1818
#' @inheritParams geom_point
1919
#' @inheritParams geom_path
20-
#' @param bins Number of contour bins. Overridden by `binwidth`.
21-
#' @param binwidth The width of the contour bins. Overridden by `breaks`.
20+
#' @param binwidth The width of the contour bins. Overridden by `bins`.
21+
#' @param bins Number of contour bins. Overridden by `breaks`.
2222
#' @param breaks One of:
2323
#' - Numeric vector to set the contour breaks
2424
#' - A function that takes the range of the data and binwidth as input

man/geom_contour.Rd

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

0 commit comments

Comments
 (0)