I have lat/long data that are used to create points on a map. I want to create polygons around groups of these points based on density. So in my poorly color-coded drawn example below, I have 4 different areas that I would want polygons around. The red and black have similar densities, but they are separated due to the null area (less dense) between them, so they would have separate polygons. As an added bonus, I would like to limit the number of points in each polygon to a set amount as well. This doesn't have to be perfect. It would be fine if the red black and purple ended up in 1 polygon. I have been toying around with making grids and then trying to group the grids together, but still haven't quite got there.
