# NOT RUN {
## Add some data examples from the package
load(file = system.file("extdata/resultrect.rda", package = "windfarmGA"))
load(file = system.file("extdata/resulthex.rda", package = "windfarmGA"))
load(file = system.file("extdata/polygon.rda", package = "windfarmGA"))
## Plot the results of a hexagonal grid optimization
Grid <- hexa_area(polygon, size = 75, FALSE)
plot_result(resulthex, polygon, best = 1, plotEn = 1, topographie = FALSE,
Grid = Grid[[2]])
## Plot the results of a rectangular grid optimization
Grid <- grid_area(polygon, resol = 150, 1, FALSE)
plot_result(resultrect, polygon, best = 1, plotEn = 1, topographie = FALSE,
Grid = Grid[[2]])
# }
Run the code above in your browser using DataLab