Learn R Programming

mapdeck (version 0.3.5)

add_dependencies: Add Dependencies

Description

Adds the required mapdeck javascript dependencies to a map when not using a mapdeck map.

Usage

add_dependencies(map)

Arguments

map

the map object to which dependencies will be added

Examples

Run this code
# \donttest{

## use with a google map from googleway
library(googleway)

set_key("GOOGLE_MAP_KEY")

google_map() %>%
	add_dependencies() %>%
	add_scatterplot(
		data = capitals
		, lon = "lon"
		, lat = "lat"
		, fill_colour = "country"
		, radius = 10000
	)

# }



Run the code above in your browser using DataLab