plot.genotype.frequency: Plot the evolution of the frequency of genotype

Description Usage Arguments Examples

Description

given a matrix of frequency returned by the function 'compute.frequency.evolution' and the associated genome, plot the frequency of all possible genotype through time

Usage

1
plot.genotype.frequency(genome, freqs)

Arguments

genome

A S4 object of the type genome

freqs

a matrix of frequency as returned by the function 'compute.frequency.evolution'

Examples

1
2
3
4
5
locus1 = create.locus(allele1=c(1,1),allele2 = c(1,2),sd = c(0,1))
locus2 = create.locus(allele1=  c(1,1,2),allele2 = c(1,2,2),fitness.female = c(1,0.9,0.8),fitness.male = c(0.6,0.8,1))
genome = create.genome(locus=list(locus1,locus2))
freqs <- compute.frequency.evolution(genome)
plot.genotype.frequency(genome, freqs)

frederic-michaud/hapex documentation built on May 15, 2019, 3:29 p.m.