R/CorDdPlot.R

Defines functions CorDdPlot

Documented in CorDdPlot

CorDdPlot = function(x, d, ncode) {
    data = COR_DeltaDd(x, d, ncode,nrepet=999)
   # requireNamespace("ggplot2")
     a= plot(data$Dgeo, data$PairwiseDeltaD, xlab = "Geographic Distance", ylab = "Genetic differentiation (DeltaD)")
    abline(lm(data$PairwiseDeltaD ~ data$Dgeo))
    lm = lm(data$PairwiseDeltaD ~ data$Dgeo)
    return(summary(lm))
}

Try the HierDpart package in your browser

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

HierDpart documentation built on March 31, 2021, 5:09 p.m.