Internal: Takes a q-matrix dataframe along with grp labels. Pop labels can be reordered or subsetted. The function also creates labelpos and markerpos dfs.
grpLabels(df = NULL, grplab = NA, subsetgrp = NA, grpmean = FALSE,
labpos = NA, linepos = NA)
A q-matrix dataframe
A character vector of group labels
A character or character vector of grp name(s) to subset/reorder
A logical indicating if q-matrix must be converted from individual to group 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 of original/subsetted/reordered grp label vector. If labpos and linepos is not NA, then they are included in the list.