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)

Arguments

x

A vector of pair names such as Oki_Kum, Osa_Nor, etc

short

Further group all Ciona and Drosophila together.

Value

A vector of "same_pop", "Oki – North" and "North – North".