Skip to content
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

Clip qq line #6220

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Clip qq line #6220

wants to merge 3 commits into from

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6087.

It does so by preserving the slope and intercept as computed variables and using geom = "abline".

devtools::load_all("~/packages/ggplot2")
#> ℹ Loading ggplot2
#> Warning: package 'testthat' was built under R version 4.4.2

ggplot(mpg, aes(sample = displ)) +
  geom_qq() +
  geom_qq_line() +
  ylim(range(mpg$displ)) +
  coord_cartesian(clip = "off")

Created on 2024-12-06 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could geom_qq_line always stop at the limits, regardless of other settings?
1 participant