Hi, I need to plot a graph with two lines. I tested the first line and it works perfectly but as soon as I try to trace the second line even separately this error message appears : Aesthetics must be either length 1 or the same as the data (21): y.
Here is the Dataset that I'm currently using and here is the code that I wrote : ggplot() + geom_point(data = Average_corruption_per_region, aes(x = Group.1, y = cpi_ti), color = "blue") + geom_point(data = Average_corruption_per_region, aes(x = Group.1, y = av_corr_LatinAmerica), color = "red").
This is my first post so feel free to ask me for more detail if I am not giving all the information.
Thank you in advance !