-
Notifications
You must be signed in to change notification settings - Fork 2.1k
geom_contour()
documentation states false precedence of bin and binwidth parameters
#4651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
geom_contour()
documentation stageom_contour()
documentation states false precedence of bin and binwidth parameters
@clauswilke is this a leftover bug from the contour rewrite? |
Possibly, though it's also possible it was never right. There's no technical reason I can see why the contour rewrite would have touched this part. In any case, I have no strong opinion about the order of precedence, but I agree we should fix this. I'd vote for fixing the documentation. Let's not touch the code unless there's a good reason to do so. |
Right now the documentation for
geom_contour()
and friends states that thebin
argument is overridden by thebinwidth
parameter. However, this seems not to be the case.Created on 2021-10-28 by the reprex package (v2.0.0)
The issue lays on the
contour_breaks()
function, which computes the binwidth from the bins if bins is not NULL:ggplot2/R/stat-contour.r
Lines 158 to 170 in 759c63c
I believe that previous versions of
geom_contour()
did respect the documentation. Should the documentation be changed to reflect the new precedence or should the code be changed to reflect the documentation?The text was updated successfully, but these errors were encountered: