It doesn't look like you provided enough code to reproduce your issues. (Be sure to ask questions like this with a reprex
FAQ: What's a reproducible example (`reprex`) and how do I create one?)
There's a few ways to get this error. One of your color parameters might be all NAs,
Some discussion;
Again, asking this question with a reprex will help folks help you.