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

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.