R/plot.MangroveBetas.R

Defines functions plot.MangroveBetas

Documented in plot.MangroveBetas

plot.MangroveBetas <- function(x,...) {
	
	temp1 <- 2*x$Freq*(1 - x$Freq)*x$beta^2
	ids <- x$rsID[order(temp1)]
	temp1 <- cumsum(sort(temp1,decreasing=T))/(sum(temp1) + 1)
	names(temp1) <- ids
	barplot(temp1,beside=T,col=c("blue"),xlab="Cumulative variants",ylab="Variance explained")
}

Try the Mangrove package in your browser

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

Mangrove documentation built on May 1, 2019, 9:10 p.m.