Skip to content

Fix incorrect monotonicity test failure in sec.axis #2805

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

Merged
merged 2 commits into from
Aug 10, 2018

Conversation

dpseidel
Copy link
Collaborator

@dpseidel dpseidel commented Aug 6, 2018

PR #2095 changed the order in which the range a secondary axis was transformed, sampled, and tested for monotonicity. Sampling over the transformed space rather than the original scale caused the monotonicity test on the secondary axis to fail for certain transformations. This PR fixes those failures by sampling on the original scale rather than the transformed scale, effectively a partial reversal of PR #2095 whose motivating problem was fixed in an alternative way by #2796.

@dpseidel dpseidel requested review from hadley and thomasp85 August 6, 2018 23:17
@dpseidel
Copy link
Collaborator Author

dpseidel commented Aug 6, 2018

Test failure is due to an invertibility issue in scales 0.5.0 boxcox_trans(), I've been using scales 1.0.0 (unreleased) locally. Will remove/alter test.

@hadley
Copy link
Member

hadley commented Aug 9, 2018

@thomasp85 can you please review?

@thomasp85
Copy link
Member

Yes - I’ll give it a look tomorrow

@lock
Copy link

lock bot commented Feb 6, 2019

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/

@lock lock bot locked and limited conversation to collaborators Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants