Description Usage Arguments Value Examples
View source: R/plotdiversity.R
Calculates and plots the genetic diversity (mean pairwise number of SNPs between samples) in deep-sequenced samples.
1 | plotdiversity(X, sample.times, makeplot = TRUE, filter=FALSE, ...)
|
X |
Simulated deep sequence data over time. |
sample.times |
Vector of sample collection times. |
makeplot |
Should diversity samples be plotted? |
filter |
Should a subset of the sequence data be plotted? That is, should only the sequences at |
... |
Additional arguments to be passed to |
Returns a vector of diversity values for each sample time.
1 2 3 | data(deepseq)
D <- plotdiversity(deepseq, sample.times=(1:50)*1000, xlab="Time",
ylab="Expected pairwise SNPs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.