# \donttest{
df <- data.frame(lon = runif(50, -5, 5), lat = runif(50, 45, 50))
result <- hexify(df, lon = "lon", lat = "lat", area_km2 = 2000)
# Basic plot
plot(result, basemap = FALSE)
# With basemap and custom styling
plot(result, grid_fill = "lightblue", grid_border = "darkblue")
# }
Run the code above in your browser using DataLab