Skip to content

Add support for ggalt::geom_dumbbell. #1782

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

Closed
wants to merge 0 commits into from
Closed

Add support for ggalt::geom_dumbbell. #1782

wants to merge 0 commits into from

Conversation

trekonom
Copy link
Contributor

@trekonom trekonom commented Jun 1, 2020

This PR adds support for ggalt::geom_dumbbell and closes #1454 .

  • The implementation follows ggalt::GeomDumbbell.

  • Tooltips only show up if hovering over the points and differ for the left and right point. To this end I added a util function make_hovertext which overwrites the hovertext set by layers2traces.

  • I also added some tests and tried to add a visual test (which however failed when running the test while vdiffr::manage_cases showed me a successful doppelganger). Therefore the visual test is commented out in the test.

@trekonom trekonom changed the title Add support for ggalt::geom_dumbbell. Add util function make_hovertex… Add support for ggalt::geom_dumbbell. Jun 1, 2020
@trekonom
Copy link
Contributor Author

trekonom commented Jun 6, 2020

Hi Carson. First. Sorry for messing up the commit history.

  • I folllowed your suggestions for simplifying the code, removing the duplicated code and renaming the variables.
  • After commiting I realized that I thereby introduced a bug. The latest commits fix this bug. I also added an addtional test to check that.
  • Finally I removed some code duplication by adding a function segement2path .

Best, Stefan

@trekonom trekonom mentioned this pull request Jun 17, 2020
@trekonom
Copy link
Contributor Author

I just added the visual tests to the PR. However, running the visual tests against the docker image failed with the message "there is no package called 'ggalt'". If I should guess ... this probably happens because ggalt is not included in the docker image.

@cpsievert
Copy link
Collaborator

Ah, yea, let's add ggalt to Suggests in the DESCRIPTION file

@trekonom trekonom closed this Mar 13, 2023
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.

Add support for geom_dumbbell
2 participants