Aestheticsmust be either length 1 or the same as the data (10)

I recommend you study how to use ggplot2,

Particularly chapter 3

if you have specific issues you should make a reprex to your best ability
Please have a look at this guide, to see how to create one: