R Coloring Barplot Using A Continuous Variable Factor Not Working

R Coloring Barplot Using A Continuous Variable Factor Not Working