get_colors: Get colors for the different levels of a factor variable

Description Usage Arguments Value

View source: R/biplot3Dim.R

Description

Get colors for the different levels of a factor variable

Usage

1
get_colors(groups, color_palette = palette())

Arguments

groups

A factor variable containing the group of each observation.

color_palette

The palette or vector of colors to be used.

Value

Return a vector of colors matching the levels of groups.


Andros-Spica/biplot2d3d documentation built on June 10, 2020, 1:38 p.m.