Skip to content
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 feature to have Stacked or nested bubbles sizes on legend when plotting bubbles in tmap #777

Open
ar-onos opened this issue Sep 16, 2023 · 4 comments

Comments

@ar-onos
Copy link

ar-onos commented Sep 16, 2023

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

@mtennekes
Copy link
Member

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.

@tomroh
Copy link

tomroh commented Sep 18, 2023

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

Creating a new issue for leaflegend at tomroh/leaflegend#76

@ar-onos ar-onos changed the title New feature to have Stacked or nested bubbles sizeson legend when plotting bubbles in tmap New feature to have Stacked or nested bubbles sizes on legend when plotting bubbles in tmap Sep 18, 2023
@tomroh
Copy link

tomroh commented Oct 3, 2023

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

@ar-onos
Copy link
Author

ar-onos commented Oct 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants