We have 3 main evolutionary distances: same population, North Atlantic vs North Pacific, and Okinawa vs the other populations. To ease plotting this function transforms the names of pairwise comparisons in one of these three classes.
compDistance(x, short = FALSE)
A vector of pair names such as Oki_Kum
, Osa_Nor
, etc
Further group all Ciona and Drosophila together.
A vector of "same_pop"
, "Oki – North"
and "North – North"
.