| 1 |
# pal_manual gives warning if n greater than the number of values |
| 2 |
|
| 3 |
Code |
| 4 |
pal_manual(c("red", "blue", "green"))(4) |
| 5 |
Condition |
| 6 |
Warning: |
| 7 |
This manual palette can handle a maximum of 3 values. You have supplied 4 |
| 8 |
Output |
| 9 |
[1] "red" "blue" "green" NA |
| 10 |
|