GA_Plot: Plot Genetic Algorithm

Description Usage Arguments Details Value Examples

Description

This function plots the history of the genetic algorithm performed

Usage

1
GA_Plot(gaObject, title, xAxis, yAxis, color, ...)

Arguments

gaObject

Object returned by select() function.

title

The title of the plot. Default is "Model Score History".

xAxis

The x-axis label. Default is "Generation".

yAxis

The y-axis label. Default is "Score".

color

The color of the points. Default is "green" for genetics.

...

Extra arguments to be passed to plot function.

Details

This function accepts a select() object and plots the score history. Several default options are given. The plot type is fixed.

Value

Plots the full history of the genetic algorithm.

Examples

1
2
3
4
5
set.seed(42)
test_Data <- data.frame( matrix(data = runif(n = 900, min = 0, max = 100), nrow = 100, ncol = 9) )
colnames(test_Data) <- c("Y", LETTERS[1:8])
holdObject <- select(data=test_Data, model=lm, generations=100)
GA_Plot(holdObject)

GilChrist19/GA documentation built on May 13, 2019, 5:32 p.m.