Given a group membership vector, each group receives a unique color such that the resulting color vector is as long as the group membership vector.

assignColorsToGroups(
groups,
refName = "ref",
myColors = NULL,
returnMap = FALSE,
hiddenSamples = c()
)

## Arguments

groups a vector of group memberships the name of the reference group; receives gray as a color an optional map of predefined colors for groups whether to return the color map together with the colors optional vector of indices of samples to be hidden; these are assigned an invisible color

## Value

a vector of colors; if returnMap is true, a vector of colors and the color map