Learn R Programming

windfarmGA (version 5.0.0)

plot_parkfitness: Fitness and operator rates

Description

Fitness (max / mean / min) and the three operator rates. Rates are percentages: Selection = share of the population used as parents, Crossover inject = unused cells mixed into children, Mutation = chance that a turbine is swapped to a free cell. The legend sits outside and follows the typical vertical order of the lines (selection highest, then inject, mutation lowest). Plotly hover is used only when ask is FALSE and plotly is installed.

Usage

plot_parkfitness(result, spar = 0.1, interactive = NULL, ask = NULL)

Value

A plotly object, or a list of ggplots, invisibly.

Arguments

result

The output of genetic_algorithm

spar

Unused, kept so existing calls do not break.

interactive

Use plotly when ask is FALSE and plotly is installed.

ask

If TRUE, wait for Enter between the fitness page and the rates page. 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_population(), plot_result(), plot_windfarmGA(), plot_windrose(), population_census(), random_search_single()

Examples

Run this code
# \donttest{
plot_parkfitness(resulthex)
# }

Run the code above in your browser using DataLab