Internal: Takes a q-matrix dataframe along with group labels. Group labels can be reordered or subsetted. The function also creates label_position and marker_position dfs.
grpLabels(dframe = NULL, grplab = NA, selgrp = NA, subsetgrp = NA,
ordergrp = FALSE, grpmean = FALSE, grplabpos = NA, linepos = NA,
indlabwithgrplab = TRUE, indlabsep = "_", runid = NULL)
A q-matrix dataframe
A dataframe with group labels
A character denoting selected group label set
A character or character vector of grp name(s) to subset/reorder
A logical indicating if individuals must be ordered by group labels
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
A logical indicating if grp labels are added to indlab
A character specifying seperation in indlab
A numeric indicating run ID
Returns a list with subsetted/reordered q-matrix, a character vector of original/subsetted/reordered grplab dataframe, grplabpos and linepos.