set_opacite_elargi {oceanis} | R Documentation |
Modify the opacity of the expanded representation of a 'leaflet' map
Description
Modify the opacity of the expanded representation of a 'leaflet' map for proportional circles and chroropleth.
Usage
set_opacite_elargi(map, opacite = 0.6, map_leaflet = NULL)
Arguments
map |
objet leaflet. |
opacite |
valeur numerique (numeric). Chiffre entre 0 (transparent) et 1 (opaque). Par defaut a 0.6 (60 pour cent d'opacite ou 40 pour cent de transparence). |
map_leaflet |
objet leaflet. Pour l'integration des fonctions leaflet dans les applications shiny (cf vignette). Par defaut a NULL. |
Details
Seule la representation elargie est concernee par la modification de l'opacite. La representation principale reste 100 pour cent opaque.
Value
Retourne un objet 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[depm$REG=="93",],
fondMailleElargi = depm, fondSuppl = depm, idData = "COD_DEP",
varVolume = "POP_2015")
map <- set_opacite_elargi(map = map, opacite = 0.8)
map
[Package oceanis version 1.8.5 Index]