Description Usage Arguments Details See Also Examples
Get a Google Map Style
1 |
name |
name of map style to retrieve (see details) |
This function provides Google Maps themes that can be passed to the map_style
argument of gmap
. Currently the most popular styles from https://snazzymaps.com are available. You can also visit this site or others to specify a custom map_style
. Available styles are: "subtle_grayscale", "shades_of_grey", "blue_water", "pale_dawn", "blue_essence", "apple_mapsesque", "midnight_commander", "light_monochrome", "paper", "retro", "flat_map", "cool_grey".
1 2 3 4 5 6 7 8 9 10 11 12 13 | # custom map style
gmap(lat = 40.74, lng = -73.95, zoom = 11,
width = 600, height = 600,
map_style = gmap_style("blue_water"))
## Not run:
gmap(title = "NYC taxi pickups January 2013",
lat = 40.74, lng = -73.95, zoom = 11,
map_type = "roadmap", width = 1000, height = 800) %>%
ly_hexbin(nyctaxihex, alpha = 0.5,
palette = "Spectral10", trans = log, inv = exp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.