googleway v2.4 now live

Version 2.4.0 sees the addition of many new features (and improvements to old ones).

Those of you who have followed my 'what's next in googleway' will likely have seen some the newest additions to the package.

For those that haven't, click the links to go to those articles.

One of the more importation additions (in my opinion) is now we can plot sf objects.

library(sf)
nc <- sf::st_read(system.file("shape/nc.shp", package="sf"))
#key <- "your_api_key"

google_map(key = key, data = nc) %>%
  add_polygons(fill_colour = "AREA", 
               fill_opacity = 0.8,
               palette = viridisLite::plasma)
Screen Shot 2018-01-30 at 8.32.27 am.png

The vignette has many more examples of what you can do. Plus it shows how you to use it in shiny apps, including returning data back to R from shiny.