R/plot_cs.R

Defines functions plot_avg_cs

###############################################################################
#
# Function: plot_cs
#
# plot statistics
#
# Function calls: 	
#					
#
# Parameters:
#    	
#
# Return values:
#
# Author:			Niroshan Nadarajah <niroshan.nadarajah@uni-duesseldorf.de>
#
# Last modified:	10/11/14
#
###############################################################################

plot_avg_cs <- function(csstats, column) {
	
	plot(density(csstats@average[,column]), type='l', main="Average Tajima's D", sub="with observed values in red")
	abline(v=csstats@obsVal[,column], col=2, lty=3)
}

Try the PopGenome package in your browser

Any scripts or data that you put into this service are public.

PopGenome documentation built on Feb. 1, 2020, 1:07 a.m.