Make an R plot for the pop-up window of each country. That is, for each country, make a plot that is country-specific. Save this plot to a PNG file and add the file name to the node, e.g., the content for the description might be something like
![2098_6d628f07-68d2-47f2-8268-a881da94b442.png](https://secure.tutorsglobe.com/CMSImages/2098_6d628f07-68d2-47f2-8268-a881da94b442.png)
The resulting KML document should be a .kmz file, i.e., a zip archive that contains all of these PNG files as well as the KML document.