powered by
Creates a URL for Google Maps for a particular latitude and longitude position.
googleMap(latitude, longitude, position = NULL, zoom = 12, maptype = c("roadmap", "satellite", "terrain", "hybrid"), mark = FALSE, radius = 0, browse = TRUE, ...)
vectors of latitude and longitude values
a data frame containing latitude and longitude positions
zoom level for initial map (1-20)
one of 'roadmap', 'satellite', 'terrain', and 'hybrid'
'roadmap'
'satellite'
'terrain'
'hybrid'
a logical indicating whether the location should be marked with a pin
a vector of radii of circles centered at position that are displayed on the map
a logical indicating whether the URL should be browsed (else only returned as a string)
additional arguments passed to browseURL
browseURL
a string containing a URL. Optionally, as a side-effect, the URL is visited in a browser
deg2rad, latlon2xyz and rgeo.
deg2rad
latlon2xyz
rgeo
# NOT RUN { googleMap(40.7566, -73.9863, radius=1) # Times Square googleMap(position=rgeo(2), radius=1) # 2 random locations # }
Run the code above in your browser using DataLab