i wanted to plot a time-graph of the GDP of two countries.
the code i used was
dataframa %>% ggplot(aes(x=Years, y=GDP, colour=Country Name)) geom_line()
however, the graph i am getting when i use this code is
which is not correct.
i cannot tell what my mistake is since every source i refer to has either this code or some variation of this code. i have tried two variations which gave no results or the same result.