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
stat_contour's breaks parameter is undocumented #2472
Comments
stat_contour's breaks parameter is undocumented|
The Lines 37 to 38 in d3bd92e
( complete has no effect, though, as far as I can tell.)
They should be documented just like the comparable parameters in Lines 42 to 49 in d3bd92e
|
|
I'll take a stab at fixing this. |
|
This TDD issue is a relatively easy fix! The open PR on this (#2926) has been abandoned and needs a few fixes, notably that bins = NULL,
binwidth = NULL,
breaks = NULL,(in geom-contour.r) needs to be bins = bins,
binwidth = binwidth,
breaks = breaks,(or else the user-specified bins value won't be passed on to the stat/geom), and the documentation needs to be built with |
|
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
When trying to use
geom_contourto draw lines at specific levels à lacontour(..., levels = ...), I discovered this SO answer which documents thatgeom_contourcan be passed abreaksparameter to specify particular z values where contour lines should be drawn.Weirdly, this behavior is not documented in
?geom_contour,?geom_density_2d,?layer, or?ggplot2:::StatContour, and taking a cursory look at the source, I'm not sure where thebreaksparameter is picked up. Given the behavior is important enough to merit a parameter incontour, seems like it should be in the docs.I can make a PR if you like, but the problem is that I'm not exactly sure how this behavior should be documented, as I'm not sure what
breaksis a parameter of. An example wouldn't be too hard to add, though.Reprex:
The text was updated successfully, but these errors were encountered: