-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New vigs review #948
New vigs review #948
Conversation
Thanks @Nowosad these are looking great. Looking at it from the point of view of a complete newbie (which is who I often teach):
Renders the map with the legend underneath, rather than at the side (as below). Is there some hidden config, or Windows being weird? (I am on Windows, and installed the dev version of tmap just now). This also happens with the Thanks for sharing these. I have pushed a minor change in wording to GitHub. |
Minor wording change
Thx @Nowosad I haven't updated the vignettes yet, just restructured a bit. I was doubting between this approach or start from scratch. Agree with present tense, and indeed we use visual variables rather than aesthetics. Thx for the commit. @nickbearman good question! The placement of the legend depends on the aspect ratio of the device and the map. It chooses the position that maximizes the map size. In your example the map will be smaller if the legend is on the right hand side. Good that you mention it: we should emphasize this in one of the main vignettes. |
Thanks @mtennekes - I have added a bit of text on legends to 01_tmap_intro, in this PR #953 |
I was also going to look at 06_tmap_legends, but the Rmd wouldn't compile for me. It's the last code block:
which gives an error: `processing file: 06_tmap_legends.Rmd Error in
Quitting from lines 242-243 [unnamed-chunk-13] (06_tmap_legends.Rmd) If I run the code in a script, it works fine and gives this output: `>tmap_options("values.var")$values.var$fill $div $unord $ord $cyc $biv Any idea on the Rmd issue? I was going to have a bit more of a play, but ran out of time! |
Hi @mtennekes, I read most of the vignettes and made some changes that you can see here.
Some specific comments:
tm_place_legends_right(width = 0.2)
needed for the code examples? It is not explained thus I would avoid it