I have a table like this:
dput
of data
dput(data)
structure(list(status = c("Recovered", "Dead", "On-Treatment"
), northern_countries = c(24130778L, 955048L, 15634207L), Southern_countries = c(9157967L,
308243L, 726474L)), class = "data.frame", row.names = c(NA, -3L
))
status northern_countries Southern_countries
1 Recovered 24130778 9157967
2 Dead 955048 308243
3 On-Treatment 15634207 726474
I would like to create a stacked bar plot that shows the percentage of Dead, Recovered and On treatments which 2 bars are northern_countries and southern_countries.
I've been searching around but couldn't find the answer :( Also I've just started with R so please if could you elucidate things in details I'd be much appreciated.
Thanks so much xoxo