Skip to content

Commit

Permalink
Update categorical palette
Browse files Browse the repository at this point in the history
  • Loading branch information
aryoungblood committed Jan 15, 2024
1 parent 4ae8b8d commit f6552c0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
36 changes: 18 additions & 18 deletions R/rand-pal.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
#' \describe{
#' \item{RandCatPal}{
#' \itemize{
#' \item #61c6c6
#' \item #ce8644
#' \item #c1536b
#' \item #595a5a
#' \item #e2c755
#' \item #597cbe
#' \item #45aF84
#' \item #7995a5
#' \item #af61a7
#' \item #8a02fd
#' \item #191351
#' \item #951195
#' \item #fdbbbd
#' \item #7982dd
#' \item #eb98ff
#' \item #ecf100
#' \item #b1f4fd
#' \item #ccff89
#' }
#' }
#' \item{RandGrayPal}{
Expand Down Expand Up @@ -85,15 +85,15 @@ NULL
#' @rdname rand_pal
#' @export
RandCatPal <- c(
"#61c6c6",
"#ce8644",
"#c1536b",
"#595a5a",
"#e2c755",
"#597cbe",
"#45aF84",
"#7995a5",
"#af61a7"
"#8a02fd",
"#191351",
"#951195",
"#fdbbbd",
"#7982dd",
"#eb98ff",
"#ecf100",
"#b1f4fd",
"#ccff89"
)

#' @rdname rand_pal
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ This package also contains a categorical palette and a palette of sequential sha
##### `RandCatPal`
`RandCatPal` includes various colors that are suitable for showing discrete, qualitative values:

- `#61c6c6`
- `#ce8644`
- `#c1536b`
- `#595a5a`
- `#e2c755`
- `#597cbe`
- `#45aF84`
- `#7995a5`
- `#af61a7`
- `#8a02fd`
- `#191351`
- `#951195`
- `#fdbbbd`
- `#7982dd`
- `#eb98ff`
- `#ecf100`
- `#b1f4fd`
- `#ccff89`

##### `RandGrayPal`
`RandGrayPal` includes all of the grays that are used in RAND charts, plus additional grays for completeness:
Expand All @@ -81,7 +81,7 @@ scale_color_manual(values = RandGrayPal)
Access specific colors from randplot's palettes like this:

```r
RandCatPal[1] # Returns the first color in RandCatPal, #61c6c6
RandCatPal[1] # Returns the first color in RandCatPal, #8a02fd
RandGrayPal[1:3] # Returns the first through third colors of RandGrayPal.
```

Expand Down
18 changes: 9 additions & 9 deletions man/rand_pal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6552c0

Please sign in to comment.