Visualizing a graph in R

Hey! I have created two datasets, one containing real GDP of the EU and the Scandinavian Countries, and one the the growth rate of real GRP of the EU and the Scandinavian Countries, both from 1995/1996 - 2020.
I want to graph either real GDP, or real GDP growth, depends on what is best for that matter in your opinion, for both the EU and the Scandinavian countries normalised in 1995. I hope that clear enough to understand.

dput of the Real GDP:
[image]

[image][image][image]

[image]

structure(c(1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 8101448.28547533, 8146883.49114862, 8386715.08076558, 8669207.84103115, 8935393.81985536, 9326020.81459591, 9423799.94973611, 9490864.10635155, 9679969.87225837, 9800320.79254629, 10087093.721145, 10440624.9293706, 10374541.4751587, 10051691.2165848, 10170143.8694438, 10188430.9011081, 9975985.72157063, 9939240.28979674, 10151249.3738102, 10522116, 10791436.6956001, 11026153.4682649, 11201471.6106605, 11433895.9923664, 10851304.0167523, 206484.636871508, 209797.260273973, 214000, 221448.275862069, 229700.64516129, 232088.272383354, 233737.684729064, 233800.483675937, 242421.556886228, 250390.588235294, 260729.479768786, 265207.954545455, 264927.631578947, 251116.178067318, 258411.264612115, 256604.554865424, 257409.504550051, 260304.828973843, 266289.579158317, 273018, 283110, 291600.395647873, 296983.300589391, 302903.414634146, 303709.426627794, 301695.115546219, 305192.158885736, 308309.499489275, 326447.435246318, 357420.406116821, 330230.712890625, 339632.379355766, 346800.093632959, 359339.666357739, 362834.654716764, 381839.483812542, 399627.031841461, 382291.285144889, 332492.866955511, 388566.836046873, 422347.826086957, 435877.762010947, 445863.773965691, 441927.49244713, 455495, 461011.469250544, 465954.183653659, 447748.287671233, 445964.649770878, 441599.925671281, 183817.142857143, 198240.947075209, 187699.453551913, 203612.299465241, 240970.168612192, 245716.814159292, 260850.690087829, 249030.750307503, 260431.540342298, 298992.779783394, 323636.897767333, 342085.180863477, 357409.24464487, 306777.287761852, 348880.387931034, 381212.765957447, 420492.046659597, 408949.064449064, 383619.387755102, 347632, 320953.801732435, 333947.069943289, 339719.266055046, 324881.614349776, 282212.765957447), .Dim = c(25L, 5L), .Dimnames = list(NULL, c("Year", "EURY", "DKRY", "SERY", "NORY")))

dput of the Real GDP growth:
structure(c(1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020, 0.559261402612776, 2.90134554962105,
3.31285029079194, 3.02428049274042, 4.27882065434559, 1.04299686669087,
0.709126394725246, 1.97291260269381, 1.23563301604364, 2.88416382358143,
3.44476824882243, -0.634956982341706, -3.16139693699498, 1.17154558103145,
0.179649477319899, -2.1072074089556, -0.369018894902595, 2.11062007788243,
3.58825388393953, 2.52735932964079, 2.15171177678712, 1.57751246464315,
2.05371129746226, -5.2297017812716, 1.59156252088337, 1.98343778962435,
3.42130296411334, 3.65878737407499, 1.03408653077466, 0.708169741831455,
0.0268636665387234, 3.62100634946376, 3.23438703099637, 4.04613422285713,
1.70308585488126, -0.105755206769942, -5.35410074387457, 2.86366717876803,
-0.701616179487807, 0.313201683065323, 1.11851437049229, 2.27309966923475,
2.49533669858888, 3.62977876240134, 2.95488422493548, 1.82915532994503,
1.97380808596268, 0.2657419735133, 1.1524651092552, 1.0162539546954,
5.71647942011619, 9.06437560093227, -7.9121156958772, 2.80722553080572,
2.08847194349175, 3.55195721201298, 0.967914682899718, 5.10530870077357,
4.55313708828857, -4.43488471491253, -13.956443748779, 15.5846784067453,
8.3364015808673, 3.15326347034066, 2.26516241451513, -0.88676414413893,
3.0238915307649, 1.20381820642361, 1.06643891967, -3.98560943153061,
-0.399152836162386, -0.983536162933696, 7.55417206331419, -5.46411629829429,
8.13756604951195, 16.8455451338005, 1.95065667454877, 5.97684641175888,
-4.63717909493386, 4.47636416152744, 13.8079399551563, 7.92027762335277,
5.5437571451856, 4.38216958697613, -15.2759431479266, 12.8607098173088,
8.86285246233776, 9.80679051361992, -2.78349537379405, -6.39397281629268,
-9.85064343322861, -7.98472560569738, 3.96853142588967, 1.71370812738498,
-4.46587360381496, -14.079957676549), .Dim = c(24L, 5L), .Dimnames = list(
NULL, c("Year", "EURY", "DKRY", "SERY", "NORY")))

Thank you in advance!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.