key.colored: Extract the color key from a colored factor
Description
Return a colored factor's key, mapping its levels to their colors.
Returns a named vector, mapping the factor levels (names) to their
associated colors (values). Useful for constructing plot keys.