plot_cell_heatmap: Heatmap of probed grid cells

View source: R/plots.R

plot_cell_heatmapR Documentation

Heatmap of probed grid cells

Description

Count how often each grid cell appeared in an evaluated layout over all generations (allCoords in the GA result). Never-tried cells stay light gray. Useful to see whether the search covered the area or stuck to a few sites.

Usage

plot_cell_heatmap(result, area, log = TRUE, plot = TRUE)

Arguments

result

The output of genetic_algorithm

area

Site polygon (sf, SpatialPolygons, or coordinate matrix). Must be projected in metres.

log

If TRUE, color the counts on a log1p scale so a few elite cells do not dominate the palette. Default is TRUE

plot

Deprecated alias for plot.

Value

A data.frame with grid ID, coordinates and visit count (n_probed), returned invisibly.

See Also

Other Plotting Functions: generation_layouts(), plot_cloud(), plot_development(), plot_evolution(), plot_generation(), plot_parkfitness(), plot_population(), plot_result(), plot_windfarmGA(), plot_windrose(), population_census(), random_search_single()

Examples


plot_cell_heatmap(resultrect, sp_polygon)


windfarmGA documentation built on Sept. 14, 2026, 9:08 a.m.