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

Would be nice to color points using 2D kernel density #3

Closed
DarwinAwardWinner opened this issue Sep 6, 2019 · 2 comments
Closed

Would be nice to color points using 2D kernel density #3

DarwinAwardWinner opened this issue Sep 6, 2019 · 2 comments

Comments

@DarwinAwardWinner
Copy link

Rather than counting nearest neighbors, it might be nice to be able to color each point based on the interpolated value of the 2D kernel density estimate at that point's location. You can do this using fields::interp.surface.

@DarwinAwardWinner
Copy link
Author

This also potentially helps with #2, since I'm pretty sure 2D KDE's runtime isn't quadratic in the number of input points.

@LKremer
Copy link
Owner

LKremer commented Sep 20, 2019

I added method="kde2d"to the geom and stat. It is indeed faster for many points (~ >20k) but slower for few points.

@LKremer LKremer closed this as completed Sep 20, 2019
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