-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Could geom_qq_line
always stop at the limits, regardless of other settings?
#6087
Comments
geom_qq_line
always stop at the limits, regardless of other settings?
I still am not sure I fully understand what the request is. Are you asking that |
Exactly, that the geom_qq_line always gets clipped to the vertical (and horizontal) extent of the plot. It is treated the same as vline/hline in this respect |
Yeah I think the situation is different from vline/hline because those geoms have no data they're referring to and so the panel boundaries are the only logical places to clip, whereas for I wouldn't want to make the vertical clipping the default, but I'm not opposed to adding an option that turns it on, similar to |
The qq-line is a stat, whereas clipping is more of a geom property. If we swap to |
Following on from #6081
This would be helpful, as qq_line is always needed in the panel - and then you would have the flexibility to adjust the scale and coord settings without adversely affecting the abline. So, In essence, for the same reasons that it is useful for vline/hline/abline, it is also helpful for qq_line.
An example: say a user wants to have y limits on the range of the y data with zero expand - and also not clip any points in half. They cannot do this as far as I am aware, as the qq_line will now extend past the panel.
Created on 2024-09-07 with reprex v2.1.1
It would also help people new to ggplot2, as they wouldn't get confused when setting limits and the the qq_line disappearing. See example in #6081
The text was updated successfully, but these errors were encountered: