Learn R Programming

D3partitionR (version 0.5.0)

set_discrete_color_scale: Add a custom discrete color scale

Description

Add a custom discrete color scale

Usage

set_discrete_color_scale(D3partitionR_object, color_palette)

Arguments

D3partitionR_object

The D3partitionR object to which the data should be appended

color_palette

A vector (or a named vector with levels of the variable color)

Value

A D3partitionR object