-
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
tmap option defaults & styles: your opinions? #906
Comments
Hi @mtennekes -- I mainly use the default style, so I do not have strong feelings about other styles. The |
Dear @mtennekes, we have now transitioned in All in all, kudos for your excellent work! |
I think the legend being outside by default is a great improvement, thanks! |
Hi @mtennekes - almost exclusively use the default style as well, but appreciate the variety of alt options to diversify tmap! |
I was unaware of the availability of themes, but will definitely test them in the future 🙏🏼 |
Thx for this useful feedback. Imho, the pros of having the legend outside the map outweighs the cons. The layout of the plot (map(s) with components such as legends) should be (near) optimal given the device size. In case you encounter a situation in which the layout is far from optimal, please let me know with a screenshot. |
FYI: I have updated the default color palettes for categorical data. I've created several new palettes in the underlying package
tm_shape(World) +
tm_polygons("economy") + tm_title("c4a.area7 palette") tm_shape(rivers) +
tm_lines("scalerank", lwd = 2, col.scale = tm_scale(values = "cat")) +
tm_title("c4a.line7 palette") Have to work on standard 'dark' theme. At the time being: tm_shape(World) +
tm_polygons("economy", col = "grey70",
fill.scale = tm_scale_categorical(values = "area7d")) +
tm_title("c4a.area7 palette") + tm_style("cobalt") +
tm_options(bg.color = "black", outer.bg.color = "black") Because these new palettes are in the dev-version of cols4all (not the CRAN version), these palettes are for the time being also loaded directly in tmap (in onLoad), so the startup time of tmap is a bit slower. If you are interested in these color palettes, please check out the gui: remotes::install_github("mtennekes/cols4all")
library(cols4all)
c4a_gui() |
(a follow-up from #593)
Before v4 can be released on CRAN, we need to make sure all the default values for the options and (closely related) all the styles are intuitive to use.
There are over 600 options in tmap4, but I am talking about the most important ones from a user perspective: default colors, color scales, font sizes, legend frames, etc.
I've made some changes to the default option values, most importantly:
This set of default option values is known by tmap4 as the style
"white"
.So far ((feae681), all the other styles have been copied directly from v3. For each style, say
"cobalt"
there is a new version (also called"cobalt"
), that takes all color (palette) options but with the new tmap4 changes (e.g. legends), and a version named"cobalt_v3"
that replicates this style as close as possible to this style in tmap3.Please run and check the output of
I'd like to remain all v3 styles (iIncluding "col_blind_v3" that is still missing) for backward compatibility.
Questions for you:
My own answers (just an opinion):
color.intensity = 0
. So all color palettes except sequential are useless here and need to be changed."view"
mode. "albatross" is similar to "cobalt" but I like it less.What are your opinions?
The text was updated successfully, but these errors were encountered: