Skip to content

Fix incorrect monotonicity test failure in sec.axis - #2805

Merged
dpseidel merged 2 commits into
tidyverse:masterfrom
dpseidel:mono
Aug 10, 2018
Merged

dpseidel merged 2 commits into
tidyverse:masterfrom
dpseidel:mono

Conversation

@dpseidel

@dpseidel dpseidel commented Aug 6, 2018

Copy link
Copy Markdown
Collaborator

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

dpseidel commented Aug 6, 2018

Copy link
Copy Markdown
Collaborator Author

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

hadley commented Aug 9, 2018

Copy link
Copy Markdown
Member

@thomasp85 can you please review?

@thomasp85

Copy link
Copy Markdown
Member

Yes - I’ll give it a look tomorrow

@lock

lock Bot commented Feb 6, 2019

Copy link
Copy Markdown

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