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

extended_range_breaks - n= not respected #139

Open
dschmidt-hgu opened this issue Jun 22, 2022 · 0 comments
Open

extended_range_breaks - n= not respected #139

dschmidt-hgu opened this issue Jun 22, 2022 · 0 comments

Comments

@dschmidt-hgu
Copy link

Supposedly due to the line

n <- length(Q) (line 99 @ scales.R)

n is overwritten and thus not respected.

The implementation in the labeling-Package is using a parameter m here.

Minimal working example:

ggthemes::extended_range_breaks_(dmin=1,dmax=99,n=5)
ggthemes::extended_range_breaks_(dmin=1,dmax=99,n=10)

labeling::extended(1,99,m=10)

Outputs:

1 30 50 70 99

1 30 50 70 99

0 10 20 30 40 50 60 70 80 90 100

For ggthemes::extended_range_breaks_(dmin=1,dmax=99,n=10) with n=10 I would expect something like:

1 10 20 30 40 50 60 70 80 90 99

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

No branches or pull requests

1 participant