Create a colored density legend for visually representing the distribution of a color variable on a plot