createColorVectorsByDesign: createColorVectorsByDesign

View source: R/createColorVectorsByDesign.R

createColorVectorsByDesignR Documentation

createColorVectorsByDesign

Description

Produces a color vector for items by using a design matrix.

Usage

createColorVectorsByDesign(design_matrix, hsv = TRUE, offset = NULL)

Arguments

design_matrix

A dummy coded design matrix.

hsv

a boolean. If TRUE, use prettyGraphsHSVColorSelection. If FALSE, use prettyGraphsColorSelection.

offset

numeric. An offset value to be passed to prettyGraphsHSVColorSelection or prettyGraphsColorSelection.

Value

Produces a list with the following items

oc

The colors of the observations (based on group)

gc

The colors of the groups

Author(s)

Derek Beaton


prettyGraphs documentation built on April 13, 2025, 1:08 a.m.