-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnotes_pals.Rmd
196 lines (128 loc) · 6.17 KB
/
notes_pals.Rmd
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# Ideas
Emil Hvitfeldt has THE comprehensive list of palettes in R
https://github.com/EmilHvitfeldt/r-color-palettes
```{r}
pal.test(viridis)
pal.test(paletteer_c(package = "scico", palette = "davos", n = 111)) # good
pal.test(paletteer_c(package = "scico", palette = "devon", n = 111))
pal.test(paletteer_c(package = "scico", palette = "lapaz", n = 111)) # good
pal.test(paletteer_c(package = "scico", palette = "oslo", n = 111))
pal.test(paletteer_c(package = "scico", palette = "tokyo", n = 111))
pal.test(paletteer_c(package = "scico", palette = "turku", n = 111))
image(penobscot, col=viridis(111))
image(penobscot, col=paletteer_c(package = "scico", palette = "davos", n = 111))
image(penobscot, col=paletteer_c(package = "scico", palette = "lapaz", n = 111))
```
Crameri
https://www.data-imaginist.com/2018/scico-and-the-colour-conundrum/
http://www.fabiocrameri.ch/colourmaps.php
https://zenodo.org/record/1243909
Todo:
http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
http://www.ncl.ucar.edu/Document/Graphics/color_tables.shtml
https://matplotlib.org/xkcd/examples/color/colormaps_reference.html
https://matplotlib.org/examples/color/colormaps_reference.html
Data:
http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Files/
Add St Helens image as used in plotly?
https://github.com/matplotlib/viscm/tree/master/viscm/examples
The 'IsolatedGalaxy' image is a very good test image which can look very different depending on the colormap.
http://yt-project.org/doc/visualizing/colormaps/index.html
The data is in a mysterious (3D?) format. Perhaps one of these images could be cropped and rasterized and back-transformed from color to numerical value.
http://yt-project.org/doc/_images/cmap_images__Projection_Greys_r.png
http://yt-project.org/doc/_images/cmap_images__Projection_BuPu.png
http://yt-project.org/doc/_images/cmap_images__Projection_Pastels.png
http://yt-project.org/doc/_images/cmap_images__Projection_Pastel2.png
In pal.test, add discrete=TRUE to prevent interpolation
TODO: gist_earth
Peter Karpov: In Search of a Perfect Colormap
http://inversed.ru/Blog_2.htm
http://mkweb.bcgsc.ca/
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/_cm.py
# ----------------------------------------------------------------------------
# Done
# Misc
https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/
Color Schemes Appropriate for Scientific Data Graphics
http://geog.uoregon.edu/datagraphics/color_scales.htm
d3-scale Interesting palettes at bottom
https://github.com/d3/d3-scale/blob/master/README.md
Choosing colormaps
http://matplotlib.org/users/colormaps.html
# People
## Peter Kovesi
Palettes defined in csv format here:
http://peterkovesi.com/projects/colourmaps/index.html
Some interesting comments about the palettes
https://github.com/peterkovesi/PerceptualColourMaps.jl/blob/master/src/cmap.jl
## Matteo Niccoli
Credit to Matteo Niccoli as the author and mycarta.wordpress.com
https://mycarta.wordpress.com/2012/05/29/the-rainbow-is-dead-long-live-the-rainbow-series-outline/
Trimmed version of cubicyf palette
https://www.mathworks.com/matlabcentral/fileexchange/28982-perceptually-improved-colormaps/content/pmkmp/pmkmp.m
Non-trimmed version here
https://github.com/rikrd/matlab/blob/master/output/pmkmp/pmkmp.m
## Kristen Thyng
cmocean, MIT license
http://matplotlib.org/cmocean/
https://github.com/kthyng/cmocean
Actual color definitions are here:
https://github.com/kthyng/cmocean/tree/master/cmocean/rgb
PlotCon 2016 talk
https://www.youtube.com/watch?v=o9KxYxROSgM
## Paul Tol
https://personal.sron.nl/~pault
# StackExchange
http://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors
http://stackoverflow.com/questions/2328339/how-to-generate-n-different-colors-for-any-natural-number-n
http://graphicdesign.stackexchange.com/questions/3682/where-can-i-find-a-large-palette-set-of-contrasting-colors-for-coloring-many-d
http://mathematica.stackexchange.com/questions/64513/is-there-an-easy-way-to-use-matteo-niccolis-perceptual-color-maps-for-2d-plots
http://stackoverflow.com/questions/7251872/is-there-a-better-color-scale-than-the-rainbow-colormap
http://stackoverflow.com/questions/13968520/color-selection-for-matplotlib-that-prints-well
Linked to 9563711
http://stackoverflow.com/questions/15282580/how-to-generate-a-number-of-most-distinctive-colors-in-r
Posted 'pals' image here:
http://stackoverflow.com/questions/9563711/r-color-palettes-for-many-data-classes/41230685
# R packages
## beyonce
https://github.com/dill/beyonce
An R package for beyoncepalettes.tumblr.com
## catecolors
https://github.com/btupper/catecolors
Colors from various sources that are suitable for displaying categorical (qualitative) colors.
## ggsci
https://github.com/road2stat/ggsci
ggsci offers a collection of ggplot2 color palettes inspired by scientific journals, data visualization libraries, and science fiction TV shows.
## oce
https://github.com/dankelley/oce/
Contains R version of cmocean colormaps
## palettetown
https://github.com/timcdlucas/palettetown
An R package providing pokemon colour palettes.
## palr
https://github.com/AustralianAntarcticDivision/palr
palr provides color palettes for data, based on some well known remotely sensed data sets for sea ice concentration, sea surface temperature and chlorophyll-a.
## Polychrome
https://rdrr.io/rforge/Polychrome/man/viewers.html
install.packages("Polychrome", repos="http://R-Forge.R-project.org")
## qualpalr
qualpalr generates distinct qualitative color palettes
https://cran.r-project.org/web/packages/qualpalr/vignettes/introduction.html
https://github.com/jolars/qualpalr
## randomcoloR
https://github.com/ronammar/randomcoloR
An R package for generating attractive and distinctive colors.
## RColorBrewer
Has one main function brewer.pal to access ColorBrewer palettes.
## RSkittleBrewer
https://github.com/alyssafrazee/RSkittleBrewer
Candy-themed palettes.
## spatstat
Contains Kovesi's colormaps.
## cetcolor
https://cran.rstudio.com/web/packages/cetcolor/vignettes/cet_color_schemes.html
https://cran.rstudio.com/web/packages/cetcolor/vignettes/cet_color_schemes.html
Contains Kovesi's colormaps.
## wesanderson
https://github.com/karthik/wesanderson
Wes Anderson palettes.