Skip to content

Commit 8eb23c5

Browse files
20250218 - rcartocolor safe palette
1 parent 05ca7f6 commit 8eb23c5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

figures.Rmd

+24
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,29 @@ palette_OkabeIto_black <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2
721721
pie(rep(1, 8), col = palette_OkabeIto_black)
722722
```
723723

724+
### 12 Colors
725+
726+
`Safe` palette from the `rcartocolor` package: https://stackoverflow.com/a/56066712 (archived at https://perma.cc/WUH5-F4Z7)
727+
728+
```{r}
729+
c12 <- c(
730+
"#88CCEE",
731+
"#CC6677",
732+
"#DDCC77",
733+
"#117733",
734+
"#332288",
735+
"#AA4499",
736+
"#44AA99",
737+
"#999933",
738+
"#882255",
739+
"#661100",
740+
"#6699CC",
741+
"#888888"
742+
)
743+
744+
pie(rep(1, 12), col = c12)
745+
```
746+
724747
### 25 Colors
725748

726749
https://stackoverflow.com/a/9568659 (archived at https://perma.cc/5ALZ-3AQD)
@@ -741,6 +764,7 @@ c25 <- c(
741764
"darkturquoise", "green1", "yellow4", "yellow3",
742765
"darkorange4", "brown"
743766
)
767+
744768
pie(rep(1, 25), col = c25)
745769
```
746770

0 commit comments

Comments
 (0)