Closed trevorld closed 5 months ago
Currently we "solve this" with the following:
args <- lapply(as.list(params), unlist)
And in basic examples this seems to work fine.
However in next version of {ggplot2}
we might perhaps expect certain params to be lists of grid patterns for e.g. fill
which me might not want to unlist()
? Perhaps instead we want a helper functions that extracts the first element of length-one lists?
Also, would we want to explicitly support pattern_fill
being patterns as well?
Instead of just colors we may want to also allow lists of grid patterns...
pattern_fill
(and more) to be passed a list of values but right now{ggpattern}
and{gridpattern}
aren't setup to accept such input.