Catseg, an R package for categorising patterns of segregation