Learn R Programming

windfarmGA (version 5.0.0)

plot_cell_heatmap: 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)

Value

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

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.

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

Run this code
# \donttest{
plot_cell_heatmap(resultrect, sp_polygon)
# }

Run the code above in your browser using DataLab