Learn R Programming

oceanis (version 0.8.5)

set_opacite_elargi: 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)

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).

Value

Retourne un objet leaflet.

Details

Seule la representation elargie est concernee par la modification de l'opacite. La representation principale reste 100 pour cent opaque.

See Also

leaflet_ronds, leaflet_classes, leaflet_ronds_classes, leaflet_classes_ronds, leaflet_typo,

leaflet_oursins, leaflet_joignantes, leaflet_saphirs

Examples

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
 map
# }

Run the code above in your browser using DataLab