geno_dist: Get genotype frequencies in increasing order of size

Description Usage Arguments Value Examples

View source: R/sweepmetrics.R

Description

Get genotype frequencies in increasing order of size

Usage

1
geno_dist(pop_df, generation = NA)

Arguments

pop_df

Dataframe with column names "Identity", "Population" and "Generation"

generation

Generation at which to get frequencies (default NA corresponds to final generation)

Value

vector of genotype frequencies

Examples

1
2
3
4
5
6
library(dplyr)
library(ggmuller)
phylo <- filter(driver_phylo, CellsPerSample == -1)
pop_df <- get_population_df(phylo)
dist <- geno_dist(pop_df)
barplot(dist, ylim = c(0, 1))

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.