horizontal legend
Hi, I enjoy mapsf, but I often miss the possibility to put an horizontal legend, especially for chloropeths.
Hi,
Thanks for having such a good pkg. But I am wondering how to change the sample map and input a new map such as London or Manchester? many thanks,
Bonjour,
merci pour votre package qui est très pratique pour créer des cartes. L'organisation dans laquelle je travaille dispose d'une charte graphique où pour les analyses choroplethes on doit faire une légende horizontale. Serait-ce possible que vous développiez cette option dans votre package ?
merci, cordialement,
samuel
Bonjour, Cette fonctionnalité est prévue pour une prochaine version. T.
This feature is planned for a future version of the package.
Bonjour, Cette fonctionnalité est prévue pour une prochaine version. T.
Bonjour,
super,
merci pour votre retour,
samuel
Bonjour,
toujours sur la légende, je n'arrive pas à avoir un fond blanc opaque avec bg="white" dans mf_legend alors que ça marche très bien dans mf_credits.

merci à vous,
samuel
Bonjour,
Il me serait plus facile de vous répondre avec un exemple reproductible (ou reprex, voir https://thinkr.fr/reprex-ou-comment-demander-de-laide-efficacement/).
Pour vous répondre, le problème n’apparaît pas avec ma machine :
library(mapsf)
m <- mf_get_mtq()
bks <- mf_get_breaks(m$MED, nbreaks = 8, breaks = "quantile")
mf_map(m, 'MED', "choro",
breaks = bks,
pal = "Viridis",
leg_pos = NA)
mf_legend(type = "choro",
title = "Very very long title to make the legend overlap the map",
pos = "topleft",
val = bks,
pal = "Viridis",
frame = TRUE,
bg = "white")

Created on 2023-02-10 with reprex v2.0.2
Je pense qu'il s'agit plutôt d'un problème d'ordre de superposition des couches. La légende est elle bien appelée après mf_map(..., type = "choro", leg_pos = NA)?
Bonjour,
c'est bien ça, j'ai mis mf_legend à la fin, juste avant mf_credits et c'est parfait
merci encore
[image: image.png]
Le ven. 10 févr. 2023 à 12:35, Timothée Giraud @.***> a écrit :
Bonjour,
Il me serait plus facile de vous répondre avec un exemple reproductible (ou reprex, voir https://thinkr.fr/reprex-ou-comment-demander-de-laide-efficacement/).
Pour vous répondre, le problème n’apparaît pas avec ma machine :
library(mapsf) m <- mf_get_mtq() bks <- mf_get_breaks(m$MED, nbreaks = 8, breaks = "quantile")
mf_map(m, 'MED', "choro",
breaks = bks, pal = "Viridis", leg_pos = NA)mf_legend(type = "choro",
title = "Very very long title to make the legend overlap the map", pos = "topleft", val = bks, pal = "Viridis", frame = TRUE, bg = "white")Created on 2023-02-10 with reprex v2.0.2 https://reprex.tidyverse.org
Je pense qu'il s'agit plutôt d'un problème d'ordre de superposition des couches. La légende est elle bien appelée après mf_map(..., type = "choro", leg_pos = NA)?
— Reply to this email directly, view it on GitHub https://github.com/riatelab/mapsf/issues/19#issuecomment-1425675988, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5TERJDTLTOQFK35MUHGE2LWWYRY3ANCNFSM45CBVZNA . You are receiving this because you commented.Message ID: @.***>