Problem with merging my data with the map and visualise the maximum.

Hi, it is difficult to work out what is going on without a reproducible example - difficult for spatial data too, though you could create an aspatial example. Does suburb_most_incidents look like what you're after? You could probably add that to merged_data with an if_else() and avoid the at whole section.