riatelab / mapsf

Thematic cartography with R

Home Page:https://riatelab.github.io/mapsf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to change position of credits

asitemade4u opened this issue · comments

Hi,
I am drawing a map using mapsf and I have an issue with mf_credits only: whatever the parameter I pass to pos(center, rightbottom, bottomright), I cannot get the credits aligned to another position than bottom-left.

Here is my code:

mapsf::mf_credits(glue::glue("By Census Tracts, {clsnam}\nSource: IPUMS. 2023. http://doi.org/10.18128/D050.V18.0", cex = 0.7, pos = "bottomright", col = "#000000"))

And here is the result I get:

1920-ger (2)

Am I missing something?
Thanks,
S.

I see:

library(mapsf)
mtq <- mf_get_mtq()
mf_map(mtq)
mf_credits(txt = "pos = bottomright", pos = "bottomright")
mf_credits(txt = "pos = bottomleft", pos = "bottomleft")
mf_credits(txt = "    pos = rightbottom", pos = "rightbottom")

Created on 2024-02-20 with reprex v2.1.0

Can you provide a reproducible example (available data & code, no extra packages)?

your parentheses are in the wrong place

Oh yes, sorry for bothering, my bad...