plot.Population {epinetr}R Documentation

Plot phenotypic value for a population.

Description

Plot the phenotypic value for a population over the course of a prior simulation run.

Usage

## S3 method for class 'Population'
plot(x, ...)

Arguments

x

an object of class 'Population' which has been run in the simulator

...

additional parameters (ignored)

Details

The plot is a line graph depicting the mean, minimum and maximum phenotypic value in the population across generations. This method can only be used if the population has been run via the simulator.

Value

A plot of the population's simulation run is displayed.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

Population, runSim, addEffects, attachEpiNet

Examples

# Build a population
pop <- Population(
  popSize = 100, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100), broadH2 = 0.9,
  narrowh2 = 0.5, traitVar = 40
)
pop <- addEffects(pop)
pop <- attachEpiNet(pop)

# Run population in simulation
pop <- runSim(pop)

# Plot population's run
plot(pop)

[Package epinetr version 0.96 Index]