tmap icon indicating copy to clipboard operation
tmap copied to clipboard

New feature to have Stacked or nested bubbles sizes on legend when plotting bubbles in tmap

Open ar-onos opened this issue 2 years ago • 4 comments

Hello. I enjoy using tmap for plotting bubbles over polygons of various interval sizes. However, the legend gets too long or too wide when plotted with tm_bubbles. Is there a way to have a legend that nests the bubbles and assigns labels without occupying space? This is important when plotting several map layers at the same time. This is an example of what it looks like for now:

image

Here are some examples of the style I mean:

image

image

ar-onos avatar Sep 16 '23 01:09 ar-onos

Thanks for this feature request. We'll have to implement this in plot mode as new type of legend (will take me half a day). I've seen a leaflet add-on that does this, which we can use for the view mode. Do you know this, @tomroh?

This has low priority for me, because first we'll have to make v4 CRAN ready.

mtennekes avatar Sep 18 '23 06:09 mtennekes

I haven't seen this before, but I should be able to implement this feature.

Creating a new issue for leaflegend at https://github.com/tomroh/leaflegend/issues/76

tomroh avatar Sep 18 '23 18:09 tomroh

This has been implemented on the github version of leaflegend and will be published to CRAN for the next release. See https://github.com/tomroh/leaflegend/issues/76.

tomroh avatar Oct 03 '23 22:10 tomroh

This has been implemented on the github version of leaflegend and will be published to CRAN for the next release. See tomroh/leaflegend#76.

It looks great @tomroh . I know @mtennekes said it can't be implemented now for tmap V4 but it is a good one to have in the future.

ar-onos avatar Oct 03 '23 22:10 ar-onos