Learn R Programming

windfarmGA (version 5.0.0)

plot_population: Plot population size, cells and efficiency

Description

Three pages: (1) individuals / parents / elites, (2) unique grid cells this generation, in the elites, and ever probed, (3) park efficiency. Each page waits for Enter in an interactive session. If the grid has e.g. 70 cells and the whole population still touches every cell, "this generation" and "ever probed" both sit at 70; the elite line is then the one that shrinks toward the best sites.

Usage

plot_population(result, interactive = NULL, ask = NULL)

Value

A plotly object, or a list of ggplots, invisibly. The census table is attached as attribute census.

Arguments

result

The output of genetic_algorithm

interactive

Use plotly when ask is FALSE and plotly is installed.

ask

If TRUE, wait for Enter between pages (Plots pane). Default is TRUE in an interactive session.

See Also

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

Examples

Run this code
# \donttest{
plot_population(resultrect)
# }

Run the code above in your browser using DataLab