add_source: Add a source on a 'leaflet' map

View source: R/add_source.R

add_sourceR Documentation

Add a source on a 'leaflet' map

Description

Add a source on a 'leaflet' map

Usage

add_source(map, source)

Arguments

map

objet leaflet.

source

chaine de caracteres (character). Source de la carte.

Details

Pour supprimer la source, reexecutez la fonction add_source en laissant le parametre source a NULL.

Value

Retourne un objet de type leaflet.

See Also

leaflet_ronds, leaflet_classes, leaflet_ronds_classes, leaflet_classes_ronds, leaflet_typo,

leaflet_oursins, leaflet_joignantes, leaflet_saphirs

Examples


data("donnees_monoloc")
data("depm")

# Ronds proportionnels
map <- leaflet_ronds(data = donnees_monoloc, fondMaille = depm, idData = "COD_DEP",
varVolume = "POP_2015")
map <- add_source(map = map, source = "Source : INSEE - RP2016")

 map



oceanis documentation built on July 13, 2022, 5:06 p.m.