Step 1 is to import the data file into R
countrycount <- read.csv("country.csv")
The file country.csv has two columns. The first one is country names and the second one is number of downloads.
Step 2 is to set meaningful column names of the data frame.
names(countrycount)<- c("Country", "Downloads")
Step 3 is to tell the mapping package how to map the data.
Geo=gvisGeoMap(countrycount, locationvar="Country", numvar="Downloads",options=list(height=350, dataMode='regions'))
Step 4 is to plot the map.
Once you do this R will open a browser window and show you the interactive map.