Change this code so it is suitable for my dataset

That's something you can work with. The next step is imagining what you can see from adding a time dimension to the mix. The goal in visualization is always to reveal some aspect of the data that is difficult to infer just from the numbers.

You now have three (potentially five, using long/lat if you countries aren't too far flung) continuous variables and one categorical (country name) variable to work with. Take a look at the linked site (especially the North Carolina example). Think carefully about the range of data. If a few companies dominate sales that can overwhelm the smaller countries that may be showing interesting changes. Come back with a reprex if you need further help. See the FAQ: How to do a minimal reproducible example reprex for beginners