plotFixationTimeSelection: Fixation time theoretic curve for different selection...

View source: R/plot.R

plotFixationTimeSelectionR Documentation

Fixation time theoretic curve for different selection coefficients

Description

This function plots the fixation time curves for a given probability vector and different selection coefficients

Usage

plotFixationTimeSelection(
  N = 100,
  alphas = c(0, 3, 7, 15, 30),
  p = seq(0.01, 1 - 0.01, by = 0.01),
  type = "both"
)

Arguments

N

Number of alleles in the considered population (population size)

alphas

Vector of selection coefficients

p

Vector or initial probabilities (values between 0 and 1)

type

Fixation type: both (fixation to zero and one) or one

Value

Plot of the time to fixation curve


vrunge/WrightFisherSelection documentation built on April 25, 2022, 10:34 a.m.