factorToP2selection {pagoda2}R Documentation

Converts a names factor to a p2 selection object if colors are provided it assigns those, otherwise uses a rainbow palette

Description

Converts a names factor to a p2 selection object if colors are provided it assigns those, otherwise uses a rainbow palette

Usage

factorToP2selection(cl, col = NULL)

Arguments

cl

factor

col

names vector of colors (default=NULL)

Value

a p2 selection object (list)


[Package pagoda2 version 1.0.12 Index]