in Chapter 5, explain what the following function is doing before introducing it. It is not "simple".
plot_simp_diff <- function(pop_name, mcc_TY, monpop){
cc <- locus_table(mcc_TY, pop = pop_name, info = FALSE)
mp <- locus_table(monpop, pop = pop_name, info = FALSE)
res <- mp - cc
barplot(res[, "1-D"], main = pop_name)
}
in Chapter 5, explain what the following function is doing before introducing it. It is not "simple".