R/distribplot.R

Defines functions distribplot

Documented in distribplot

distribplot<-function(data,col=c("blue","red"),main="iHS distribution",xlab="iHS"){
     plot.density(density(data,na.rm=T),main=main,xlab="iHS",col=col[1])
     curve(dnorm,col=col[2],add=T)
     smartlegend("right","top",c("Observed","Gaussian"),fill=col)
  }

Try the rehh package in your browser

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

rehh documentation built on May 2, 2019, 5:17 p.m.