add_source | R Documentation |
Add a source on a 'leaflet' map
add_source(map, source)
map |
objet leaflet. |
source |
chaine de caracteres (character). Source de la carte. |
Pour supprimer la source, reexecutez la fonction add_source en laissant le
parametre source
a NULL.
Retourne un objet de type leaflet.
leaflet_ronds, leaflet_classes,
leaflet_ronds_classes, leaflet_classes_ronds,
leaflet_typo,
leaflet_oursins, leaflet_joignantes,
leaflet_saphirs
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.