Closure to generate a linewidth palette picker, given an input palette
Source:R/colors.R
fed_linewidth_pal.Rd
This internal function will take as an input a palette (a vector of numbers
representing linewidths) and return a function f(n)
that produces a
smaller vector containing the first n
linewidths of the
input palette.