Draw the useful summary plots of a GA run, one after another: best layout, fitness, operator rates, population, cells, efficiency, and the cell heatmap. In an interactive session every page waits for Enter so nothing is overwritten in the Plots pane.
Usage
plot_windfarmGA(
result,
area,
which_plot = "all",
best = 1,
plot_en = 1,
weibull_src = NULL,
ask = NULL,
plotly = NULL
)Arguments
- result
The output of
genetic_algorithm- area
Site polygon (
sf, SpatialPolygons, or coordinate matrix). Must be projected in metres.- which_plot
"all"(default) showsresult,progress,populationandheatmap. Or a character vector ("result","progress","population","heatmap","evolution") or the numbers 1-4.- 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- weibull_src
list(k, a)shape and scale rasters (e.g. Global Wind Atlascombined-Weibull-k/combined-Weibull-A).- ask
If
TRUE, wait for Enter between pages. Default isTRUEin an interactive session.- plotly
If
TRUE, draw fitness and rates with plotly (hover). Used only whenaskisFALSEand plotly is installed.
Examples
if (FALSE) { # \dontrun{
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_windfarmGA(resulthex, area)
plot_windfarmGA(resultrect, area, which_plot = "progress")
} # }