Napa Valley wine tasting map: interactive version

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Got some great reactions to the Napa Valley wine tasting map made with the ggmap package I posted on Monday. A couple of people asked if similar maps could be made for other wine regions (like Australia's Hunter Valley, or the Walla Walla region in Washington): provided you have a list of winery addresses, tweaks to the same R script should work just fine.

Another common question was whether the map can be made interactive. I haven't tried it myself, but you should be able to use the googlevis package's gvisGeoMap function (with the locationvar option) to create a zoomable, scrollable Google map with the wineries marked on the map. Barry Rowlingson used a different approach to create this interactive map (click on the screenshot to see it live — I couldn't find a way to embed it): 

Winery map
Map image copyright OpenStreetMap Contributors, CC BY-SA.

Not only can you scroll and zoom the map, but clicking on one of the winery markers will tell you its address and whether an appointment is required for tastings. Barry used OpenStreetMaps and his own R package to build this map:

My off-CRAN package, webmaps has two capabilities – it can download map tiles like ggmap, and it can create slippy webmaps using OpenLayers. Recent changes to OpenLayers have however broken the slippy map functionality, and I'm working on a dedicated replacement package called openlayr. However, enough of the webmaps functionality exists to give me a good start on making a dynamic map of the wineries.

You can read all the details of how this map was created at Barry's blog, linked below.

Barry Rowlingson's GeoSpatial Blog: The World Wine Web

To leave a comment for the author, please follow the link and comment on their blog: Revolutions. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)