Internal: Takes a cluster matrix along with pop labels and pop order. If pop order is different, cluster matrix is reordered by pops without sorting individuals. Also creates labelpos and markerpos dfs.
popLabels(df = NULL, poplab = NA, subsetpops = NA, popmean = FALSE,
labpos = NA, linepos = NA)
A q-matrix dataframe
A character vector of population labels
A character or character vector of pop names to subset/reorder
A logical indicating if q-matrix must be converted from individual to population mean.
A numeric indicating y-axis position of labels
A numeric indicating y-axis position of label line
Returns a list with subsetted/reordered q-matrix and a character vector or subsetted/reordered pop label vector. If labpos and linepos is not NA, then they are included in the list.