How Can I do a stacked area with a panel data?

I tried the following

Puta_Vida <- read_csv("Puta Vida.csv", na = "0")


ggplot(Puta_Vida, aes(x=Puta_Vida$Year,y=Puta_Vida$Excess, fill=Puta_Vida$Country))+

However I cannot manage to get a proper stacked area graph

my data is like this:

Can you please share a small part of the data set in a copy-paste friendly format?

In case you don't know how to do it, there are many options, which include:

  1. If you have stored the data set in some R object, dput function is very handy.

  2. In case the data set is in a spreadsheet, check out the datapasta package. Take a look at this link.

Or, even better, Can you provide a proper REPRoducible EXample (reprex) illustrating your issue?

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.