Draw the best layout(s) on the site. Turbine labels are the total wake in percent. Default is the single best energy layout.
Usage
plot_result(
result,
area,
best = 1,
plot_en = 1,
terrain = FALSE,
plot_grid = TRUE,
ccl_roughness = NULL,
ccl = NULL,
weibull_src = NULL
)Arguments
- result
The output of
genetic_algorithm- area
Site polygon (
sf, SpatialPolygons, or coordinate matrix). Must be projected in metres.- best
How many distinct best layouts to draw. Default is 1.
- plot_en
A numeric value that indicates if the best energy or efficiency output should be plotted.
1plots the best energy solutions and2plots the best efficiency solutions- terrain
Draw terrain rasters for the best layout. Reuses
result$terrainModelwhen present;TRUEdownloads only if nothing is stored. A DEM raster rebuilds the model.- plot_grid
If
TRUE(default) the used grid is added. You can also pass another Simple Feature object- ccl_roughness
Path to the CLC legend CSV (
Rauhigkeit_zcolumn).- ccl
Path to a Corine Land Cover raster when
terrainis on.- weibull_src
list(k, a)shape and scale rasters (e.g. Global Wind Atlascombined-Weibull-k/combined-Weibull-A).
Examples
if (FALSE) { # \dontrun{
## Add some data examples from the package
library(sf)
area <- sf::st_as_sf(sf::st_sfc(
sf::st_polygon(list(cbind(
c(4498482, 4498482, 4499991, 4499991, 4498482),
c(2668272, 2669343, 2669343, 2668272, 2668272)
))),
crs = 3035
))
## Plot the results of a hexagonal grid optimization
plot_result(resulthex, area, best = 1, plot_en = 1, terrain = FALSE)
## Plot the results of a rectangular grid optimization
plot_result(resultrect, area, best = 1, plot_en = 1, terrain = FALSE)
} # }