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

How exactly the number of neighbors is calculated? #18

Open
bkenm opened this issue Oct 26, 2021 · 1 comment
Open

How exactly the number of neighbors is calculated? #18

bkenm opened this issue Oct 26, 2021 · 1 comment

Comments

@bkenm
Copy link

bkenm commented Oct 26, 2021

Sorry if I didn't understand the adjust parameter, but if you could help in this issue, I would appreciate a lot.

The question is mainly about the bandwidth. What do you mean by default bandwidth? I calculated for some values for adjust, but still, it's hard to understand precisely the distance threshold.

Thank you for your attention.

@jan-glx
Copy link
Contributor

jan-glx commented Jun 18, 2023

xrange <- diff(scales$x$get_limits()) * adjust
yrange <- diff(scales$y$get_limits()) * adjust
r2 <- (xrange + yrange) / 70

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

2 participants