ggpointdensity
ggpointdensity copied to clipboard
How exactly the number of neighbors is calculated?
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.
https://github.com/LKremer/ggpointdensity/blob/02f3ab24eb22e3e34294baeca23a8998db43be70/R/geom_pointdensity.R#L106-L109