-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Line 29 in 897d666
| RR_pal <- function(fill=TRUE) { |
The RR_pal() function can be made DRY by adding all possible values to a vector and then choosing the right number, ie.:
pal <- c('red', 'blue', 'green', 'yellow')
i <- pal[1L:n)Also, a maximum of 9 colors can be limiting (although discrete graphics should have even fewer categories than 9). Factors support up to 32 values. While this might be a lot, we should definitely go beyond 9. A very simple solution can be to simply recycle colors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels