1
I have the following data:
Ano PIB
2008 0.05
2009 0.00
2010 0.08
2011 0.04
2012 0.02
2013 0.03
2014 0.01
2015 -0.04
2016 -0.03
2017 0.01
2018 0.01
When I do Plot using geom_line
of these data it returns me the curve, but the x-axis, that would be the years, do not appear year by year, being 2008, 2009, 2010 and so on.
ggplot(dados1, aes(x = Ano, y = PIB)) +
geom_line(size=1) + theme_minimal()
It returns as shown in the image.
How do I adjust this axis, to plot the correct order of the years?