Hey I'm relatively new to R and I have the following problem i could not solve using the search function. I have this excel file i created with data form world bank. Its a simple year and country gdp sheet with 3 countries Switzerland, Burkina Faso and the United States. The converted file in csv looks like this
year;Burkina Faso ;Switzerland;United States
1990;351.9793229;38332.15172;23954.47935
2000;226.4759814;37813.23426;36449.85512
2007;475.1100122;63223.46778;48061.53766
2008;569.7612784;72119.56087;48401.42734
2009;552.7455521;69672.00471;47001.55535
2010;575.4464527;74276.71842;48373.87882
2011;666.8402783;87998.44468;49790.66548
2012;673.8227;83164.38795;51450.1223
2013;699.0452847;84658.88768;52787.02695
2014;705.1464113;85814.58857;54598.55069
2015;615.592225;80989.84024;56207.03675
2016;649.7304837;78812.65069;57466.78711
I tried to plot it with ggplot2
the following way:
qplot(year, Switzerland, data = DATA_WORLD_CSV, xlab= "Year", geom = c("point", "smooth"))
but I always get an error message and I don't know why. Also does anyone have an idea how to get those 3 countries into one plot. Thanks in advance