Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

r_pal

The default R palette


Description

This is the default R palette, to be able to reproduce the colors of older igraph versions. Its colors are appropriate for categories, but they are not very attractive.

Usage

r_pal(n)

Arguments

n

The number of colors to use, the maximum is eight.

Value

A character vector of color names.

See Also


igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.