createColorVectorsByDesign {prettyGraphs}R 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


[Package prettyGraphs version 2.1.6 Index]