Learn R Programming

windfarmGA (version 5.0.0)

plot_random_search: Plot the result of a randomized output.

Description

Plotting method for the results of random_search_single and random_search.

Usage

plot_random_search(resultRS, result, area, best)

Value

Returns NULL. Used for plotting

Arguments

resultRS

The result of the random functions random_search_single and random_search.

result

The output of genetic_algorithm

area

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

best

How many best candidates to plot. Default is 1.

See Also

Other Randomization: random_search(), random_search_single()

Examples

Run this code
# \donttest{
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
))

Res <- random_search(result = resultrect, area = area)
plot_random_search(resultRS = Res, result = resultrect, area = area, best = 2)
# }

Run the code above in your browser using DataLab