palettes: Colour palette functions

Description Usage Arguments Value Examples

Description

Colour palette functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

Arguments

n

desired number of colours

Value

character string vector of colour strings

Examples

1
2
3
4
5
6
barplot(1:15, fill = pal_sea2sand, colour = "red", axes = FALSE) -> bp
z <- complex(real = bp,imaginary = seq_along(bp))
points(z, xpd = NA)
arrows(z[-length(z)], z[-1], gap = 1.5, col = "black")
labels <- c("sea", gsub(" ", "0", format(2:14)), "sand")
text(z, labels, pos = 3, xpd = NA, col = pal_blue2red(15))

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.