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

bug fix for geom_label_repel with subset of points labelled #94

Merged
merged 1 commit into from
Jan 14, 2018

Conversation

AliciaSchep
Copy link
Contributor

Minimal PR to fix bug #92 that was introduced in #86 (Sorry!). Issue is that line-crossing check expects points and labels to be in the same order; this was being violated in the case of not all points having labels. The work-around to make sure points and labels properly paired in repel_boxes was already implemented for geom_text_repel; now added to geom_label_repel.

Checked that the minimal reprex from @slowkow described in #92 looks comparable to cran version:

issue92

Side Note: I had to delete the RcppExports.cpp file and regenerate freshly to get this to build without a segfault (both pre- and post- the R changes made in this PR). This PR only includes the change to the R file though.

@slowkow
Copy link
Owner

slowkow commented Jan 12, 2018

Uh oh, I think I forgot to merge this! I'll try to do it this weekend.

Thanks for the fix!

@slowkow slowkow merged commit 222fbc9 into slowkow:master Jan 14, 2018
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.

None yet

2 participants