factorToP2selection: 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
col
names vector of colors (default=NULL)
Value
a p2 selection object (list)