plot_random_search: Plot the result of a randomized output.

Description Usage Arguments See Also Examples

View source: R/plots.R

Description

Plotting method for the results of random_search_single and random_search.

Usage

1
plot_random_search(resultRS, result, Polygon1, best)

Arguments

resultRS

The result of the random functions random_search_single and random_search.

result

The output of windfarmGA or genetic_algorithm

Polygon1

The considered area as SpatialPolygon, SimpleFeature Polygon or coordinates as matrix/data.frame

best

How many best candidates to plot. Default is 1.

See Also

Other Randomization: random_search_single(), random_search()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(sf)
Polygon1 <- 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, Polygon1 = Polygon1)
plot_random_search(resultRS = Res, result = resultrect, Polygon1 = Polygon1, best=2)

windfarmGA documentation built on May 5, 2021, 5:08 p.m.