When using scale_fill_continuous_diverging from colorspace inside a for loop or function does not paste for the nam
colorspace
for loop
function
nam