Learn R Programming

GeneGA (version 1.22.0)

plotGeneGA-methods: plotGeneGA methods of GeneGA and GeneFoldGA objects

Description

plotGeneGA implement plotGeneGA methods for GeneGA and GeneFoldGA objects respectively.The functions visualize the variation of optimized and mean overall evaluation values and variable values during the progress that genetic algorithm performed. Furthermore, the plot also can be used to check the results whether well converged.

Arguments

Methods

x = "GeneFoldGA"
plotGeneGA method for GeneFoldGA
x = "GeneGA"
plotGeneGA method for GeneGA, it also has a parameter "type", which can be assigned with one of the three values, the default value is "default", which show the variation of mean and optimized overall evaluation value along with the generation. while 1, 2 display the variation of mean and optimized overall CAI value and minimum free energy respectively, and 3 display the scatter plot of two variables--CAI and minimum free energy

See Also

GeneGA-class, GeneFoldGA-class, GeneGA, GeneFoldGA, show-methods

Examples

Run this code
seqfile=system.file("sequence", "EGFP.fasta", package="GeneGA")
seq=unlist(getSequence(read.fasta(seqfile), as.string=TRUE))
GeneGA.result=GeneFoldGA(sequence=seq, popSize=40, iters=100, crossoverRate=0.3, 
         mutationChance=0.05, region=c(1,42))
plotGeneGA(GeneGA.result)

Run the code above in your browser using DataLab