R/HWLowercl.R

Defines functions `HWLowercl`

`HWLowercl` <- function(r,verbose=FALSE,cex=1,curvecol="black",curtyp="solid") {
   # draw lower confidence limit for ordinary chisquare test
   if (r <=1) {         
      p <- seq(0,1,by=0.005)
      q <- 1 - p
      pt <- 2*(p-0.5)/sqrt(3)
      fplow <- 2*p*q - 2*p*q*r
      points(pt,fplow,type="l",lty=curtyp,col=curvecol,cex=cex)
    }
 }

Try the HardyWeinberg package in your browser

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

HardyWeinberg documentation built on May 7, 2022, 5:05 p.m.