I came across this Science article someone shared on Twitter: Plastic waste inputs from land in to the ocean

In this post I am going to make a bar graph using the top 10 countries listed in Table 1. Here is the screenshot of that table.

The ranking in the table is based on the last column. As that column shows interval estimates, I decided use the midpoints of those intervals. Here is the final result:

Below I produce the code for making this plot. The only new thing in this plot is the flags at the bottom of the bars. I am using ggimage package to put those flags there. I got the flags from this website: https://www.countryflags.com/en/

In the code below, I first created a data frame that has the paths to the files with country flags. Next I added a column for the country names. This was followed by the rank, and then the marine plastic waste. I multiplied plastic waste by 1,000, thereby converting it from million metric tons to thousand metric tons.

I created a “colors” vector with the colors I want to use. I will call this vector in the ggplot code.