R/seeSegSites.R

Defines functions seeSegSites

Documented in seeSegSites

seeSegSites <- function(DNAbin, col = c("#C8CAD8", "#023FA5")){
	pos <- 1:dim(DNAbin)[2]
	ind <- rep(1, dim(DNAbin)[2])
	ind[seg.sites(DNAbin)] <- 2
	plot(1, 1, xlim=c(0,max(pos)), ylim=c(0,1), xaxt="n", yaxt="n", xlab=NA, ylab=NA, bty="n", type="n")
	abline(v=pos, col=col[ind])
}

Try the spiderDev package in your browser

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

spiderDev documentation built on May 2, 2019, 5:23 p.m.