Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

pophelper (version 2.2.9)

grpLabels: Internal: Handles grp subset/order

Description

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.

Usage

grpLabels(dframe = NULL, grplab = NA, selgrp = NA, subsetgrp = NA,
  ordergrp = FALSE, grpmean = FALSE, grplabpos = NA, linepos = NA,
  indlabwithgrplab = TRUE, indlabsep = "_", runid = NULL)

Arguments

dframe

A q-matrix dataframe

grplab

A dataframe with group labels

selgrp

A character denoting selected group label set

subsetgrp

A character or character vector of grp name(s) to subset/reorder

ordergrp

A logical indicating if individuals must be ordered by group labels

grpmean

A logical indicating if q-matrix must be converted from individual to group mean

grplabpos

A numeric indicating y-axis position of labels

linepos

A numeric indicating y-axis position of label line

indlabwithgrplab

A logical indicating if grp labels are added to indlab

indlabsep

A character specifying seperation in indlab

runid

A numeric indicating run ID

Value

Returns a list with subsetted/reordered q-matrix, a character vector of original/subsetted/reordered grplab dataframe, grplabpos and linepos.