Learn R Programming

incidence (version 1.7.4)

incidence_pal1: Color palettes used in incidence

Description

These functions are color palettes used in incidence.

Usage

incidence_pal1(n)

incidence_pal1_light(n)

incidence_pal1_dark(n)

Arguments

n

a number of colors

Author

Thibaut Jombart thibautjombart@gmail.com

Examples

Run this code

plot(1:4, cex=8, pch=20, col = incidence_pal1(4),
     main = "palette: incidence_pal1")
plot(1:100, cex=8, pch=20, col = incidence_pal1(100),
     main ="palette: incidence_pal1")
plot(1:100, cex=8, pch=20, col = incidence_pal1_light(100),
     main="palette: incidence_pal1_light")
plot(1:100, cex=8, pch=20, col = incidence_pal1_dark(100),
     main="palette: incidence_pal1_dark")

Run the code above in your browser using DataLab