View source: R/accessibility_greenspace.R
| accessibility_greenspace | R Documentation | 
This function generates a leaflet map that shows green spaces accessible within a specified walking time from a given location. The location is specified by its latitude and longitude coordinates.
accessibility_greenspace(
  green_area_data,
  location_lat,
  location_lon,
  max_walk_time = 15,
  green_color = "green",
  location_color = "blue",
  isochrone_color = "viridis"
)
green_area_data | 
 A list containing green area data, usually obtained from the   | 
location_lat | 
 Numeric latitude of the specified location.  | 
location_lon | 
 Numeric longitude of the specified location.  | 
max_walk_time | 
 Maximum walking time in minutes. Default is 15.  | 
green_color | 
 Color for the green areas on the map. Default is "green".  | 
location_color | 
 Color for the specified location on the map. Default is "blue".  | 
isochrone_color | 
 Color palette for the isochrone lines. Default is "viridis".  | 
A leaflet map object.
## Not run: 
  green_area_data <- data$green_areas
  accessibility_greenspace(data, 47.56, 7.59)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.