R function to plot data on interactive JavaScript maps