Learn R Programming

fishplot (version 0.5)

setCol: 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

Run this code
# NOT RUN {
setCol(fish)

fish = setCol(fish, c("red","yellow","blue","green"))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab