setCol: Attach the colors for plotting to the fish object, ensuring...

View source: R/object.R

setColR Documentation

Attach the colors for plotting to the fish object, ensuring that they are valid. If no color vector is provided, a default color scheme is used.

Description

Attach the colors for plotting to the fish object, ensuring that they are valid. If no color vector is provided, a default color scheme is used.

Usage

setCol(fish, col = NULL)

Arguments

fish

A fish object with the frac.table slot filled in

col

A vector of colors with the same length as the number of clones (number of rows in the frac table)

Value

The fish object with the colors stored in the appropriate slot

Examples

## Not run: 
setCol(fish)

fish = setCol(fish, c("red","yellow","blue","green"))

## End(Not run)


chrisamiller/fishplot documentation built on Sept. 15, 2023, 1:53 p.m.