Usage
calc_ehhs(haplohh, mrk, limhaplo = 2, limehhs = 0.05, maxgap=NA, plotehhs = TRUE, lty = 1, lwd = 1.5, col = c("blue", "red"), xlab = "Position", ylab = expression(Site ~ specific ~ italic(EHH) ~ (italic(EHHS))), cex.lab = 1.25, main = NA, cex.main = 1.5)
Arguments
haplohh
An object of class haplohh
(see data2haplohh
).
mrk
Integer representing the number of the focal marker
limhaplo
Minimal number of haplotypes to continue computing EHHS away from the core SNP. Useless, if no missing data. However, when some data are missing,
haplotypes with missing data are removed from the computation. Hence as we compute EHH further from the core SNP, less haplotypes are expected
limehhs
Limit below which EHHS stops to be evaluated
maxgap
Maximum allowed gap in bp between two SNPs below which EHHS stops to be evaluated (default=NA, i.e., no limitation)
plotehhs
If TRUE, EHHS estimates are plotted for each position
lty
Line type for the EHHS_Sabeti_et_al_2007 and EHHS_Tang_et_al_2007 (respectively) curves
lwd
Line width for the EHHS_Sabeti_et_al_2007 and EHHS_Tang_et_al_2007 (respectively) curves
col
Color for the EHHS_Sabeti_et_al_2007 and EHHS_Tang_et_al_2007 (respectively) curves
xlab
Legend for the x--axis
ylab
Legend for the y--axis
cex.lab
Size of the axis legend
main
Main legend of the EHHS plot
cex.main
Size of the main legend