I have some spatial data and I use the code below to create a heatmap and to extract the created levels as polygons. My question is now how to limit the number of levels which are created? My goal is to have e.g. 5 different density levels? I have some spatial data and I use the code bel