02.07.2013 Views

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1 颜色 41<br />

1 > layout(matrix(1:3, 3), heights = c(2, 1, 1))<br />

2 > par(mar = c(0, 4, 0, 0))<br />

3 > # 连续型:18种<br />

4 > display.brewer.all(type = "seq")<br />

5 > # 极端化:9种<br />

6 > display.brewer.all(type = "div")<br />

7 > # 离散型:8种<br />

8 > display.brewer.all(type = "qual")<br />

YlOrRd<br />

YlOrBr<br />

YlGnBu<br />

YlGn<br />

Reds<br />

RdPu<br />

Purples<br />

PuRd<br />

PuBuGn<br />

PuBu<br />

OrRd<br />

Oranges<br />

Greys<br />

Greens<br />

GnBu<br />

BuPu<br />

BuGn<br />

Blues<br />

Spectral<br />

RdYlGn<br />

RdYlBu<br />

RdGy<br />

RdBu<br />

PuOr<br />

PRGn<br />

PiYG<br />

BrBG<br />

Set3<br />

Set2<br />

Set1<br />

Pastel2<br />

Pastel1<br />

Paired<br />

Dark2<br />

Accent<br />

图 4.1: RColorBrewer包中所有调色板颜色的演示:从上至下依次是连续<br />

型、极端化和离散型调色板。

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!