gmap_style: Get a Google Map Style

Description Usage Arguments Details See Also Examples

View source: R/fig_gmap.R

Description

Get a Google Map Style

Usage

1

Arguments

name

name of map style to retrieve (see details)

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".

See Also

gmap

Examples

 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)

rbokeh documentation built on Aug. 4, 2021, 1:06 a.m.