Description Usage Arguments Value Examples
Plot a resulting wind farm on a leaflet map.
1 | plot_leaflet(result, Polygon1, which = 1, orderitems = TRUE, GridPol)
|
result |
The output of |
Polygon1 |
The considered area as SpatialPolygon, SimpleFeature Polygon or coordinates as matrix/data.frame |
which |
A numeric value, indicating which individual to plot. The
default is 1. Combined with |
orderitems |
A logical value indicating whether the results should be
ordered by energy values |
GridPol |
By default, the grid will be calculated based on the inputs
of |
Returns a leaflet map.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Plot the best wind farm on a leaflet map (ordered by energy values)
plot_leaflet(result = resulthex, Polygon1 = sp_polygon, which = 1)
## Plot the last wind farm (ordered by chronology).
plot_leaflet(result = resulthex, Polygon1 = sp_polygon, orderitems = FALSE,
which = 1)
## Plot the best wind farm on a leaflet map with the rectangular Grid
Grid <- grid_area(sp_polygon, size = 150, prop = 0.4)
plot_leaflet(result = resultrect, Polygon1 = sp_polygon, which = 1,
GridPol = Grid[[2]])
## Plot the last wind farm with hexagonal Grid
Grid <- hexa_area(sp_polygon, size = 75)
plot_leaflet(result = resulthex, Polygon1 = sp_polygon, which = 1,
GridPol = Grid[[2]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.