| carte_exporter | R Documentation |
Exporte un objet ggplot2 en PNG, PDF ou SVG.
carte_exporter(carte, chemin, largeur = 20, hauteur = 15, resolution = 300L)
carte |
ggplot – Objet ggplot2 |
chemin |
character – Chemin de sortie (.png, .pdf, .svg) |
largeur |
numeric – Largeur en cm. Defaut : 20 |
hauteur |
numeric – Hauteur en cm. Defaut : 15 |
resolution |
integer – Resolution DPI (PNG). Defaut : 300L |
Chemin du fichier (invisible)
## Not run:
g <- carte_choroplethe(sf_enrichi, "taux_pauvrete")
carte_exporter(g, file.path(tempdir(), "carte.png"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.