Skip to content

Commit

Permalink
20250218 - rcartocolor safe palette
Browse files Browse the repository at this point in the history
  • Loading branch information
isaactpetersen committed Feb 19, 2025
1 parent 05ca7f6 commit 8eb23c5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions figures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,29 @@ palette_OkabeIto_black <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2
pie(rep(1, 8), col = palette_OkabeIto_black)
```

### 12 Colors

`Safe` palette from the `rcartocolor` package: https://stackoverflow.com/a/56066712 (archived at https://perma.cc/WUH5-F4Z7)

```{r}
c12 <- c(
"#88CCEE",
"#CC6677",
"#DDCC77",
"#117733",
"#332288",
"#AA4499",
"#44AA99",
"#999933",
"#882255",
"#661100",
"#6699CC",
"#888888"
)
pie(rep(1, 12), col = c12)
```

### 25 Colors

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

Expand Down

0 comments on commit 8eb23c5

Please sign in to comment.