plot.Population | R Documentation |
Plot the phenotypic value for a population over the course of a prior simulation run.
## S3 method for class 'Population' plot(x, ...)
x |
an object of class |
... |
additional parameters (ignored) |
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.
A plot of the population's simulation run is displayed.
Dion Detterer, Paul Kwan, Cedric Gondro
Population
, runSim
,
addEffects
, attachEpiNet
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.