Skip to contents

Plot the fitness values of the population over generations.

Usage

plot_fitness(fitness_values)

Arguments

fitness_values

A numeric vector containing fitness values.

Value

Plot of fitness

Examples

# example of usage
fitness_values <- c(10, 8, 6, 4, 2)
plot_fitness(fitness_values)