Learn R Programming

phyloregion (version 1.0.8)

hexcols: Generate diverging colors in HCL colour space.

Description

A function to generate colors in Hue-Chroma-Luminance colour scheme for mapping phyloregions.

Usage

hexcols(x)

Value

A range of discrete colors differentiating between phyloregions in terms of their shared relationships.

Arguments

x

An object of class metaMDS

Author

Barnabas H. Daru darunabas@gmail.com

Examples

Run this code
library(vegan)
data(dune)
c1 <- metaMDS(dune, trace = 0)
hexcols(c1)
plot(c1$points, pch = 21, cex = 7, bg = hexcols(c1), las = 1)

Run the code above in your browser using DataLab