Occupancy map of one generation, then the distinct layouts
as small maps. In an interactive session each page waits for Enter so
you can step through every distinct layout (n_show maps per page).
Non-interactive calls only draw the first n_show maps.
Usage
plot_generation(
result,
area,
generation = NULL,
n_show = 6,
interactive = NULL,
ask = NULL
)Arguments
- result
The output of
genetic_algorithm- area
Site polygon (
sf, SpatialPolygons, or coordinate matrix). Must be projected in metres.- generation
Generation index (1 = first). Default is the last generation.
- n_show
Distinct layouts per page (and, if
askisFALSE, how many to draw in total). Default is 6. Set to 0 to skip the maps.- interactive
Use plotly for the occupancy map when available.
- ask
If
TRUE, wait for Enter and page through all distinct layouts. Default isTRUEin an interactive session.
Value
The list from generation_layouts, invisibly.
