Learn R Programming

pophelper (version 2.0.0)

grpLabels: Internal: Handles grp subset/order

Description

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.

Usage

grpLabels(df = NULL, grplab = NA, subsetgrp = NA, grpmean = FALSE,
  labpos = NA, linepos = NA)

Arguments

df

A q-matrix dataframe

grplab

A character vector of group labels

subsetgrp

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

grpmean

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

labpos

A numeric indicating y-axis position of labels

linepos

A numeric indicating y-axis position of label line

Value

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.