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

Use tm_title across facets #940

Open
mtennekes opened this issue Sep 25, 2024 · 2 comments
Open

Use tm_title across facets #940

mtennekes opened this issue Sep 25, 2024 · 2 comments
Labels

Comments

@mtennekes
Copy link
Member

Seems not possible yet...

Use case: series of maps (for animation) when panel.labels are not desirable (#937)

@Rapsodia86
Copy link

Rapsodia86 commented Sep 25, 2024

And how to get rid of this title now? I did a package update and now I have the name of the variable used in tm_polygons(fill="%sig2",fill.scale = tm_scale_intervals(...)) on top of the map. It looks like from facet, but in this script there is no facet. #937

image

And previous:
image

And here using some real data (same shapefile as in #938):

tm_shape(shp_in_sf) +
tm_grid(n.y=2,lines = TRUE, crs = 4326, labels.cardinal = FALSE,labels.size = 0.5,labels.pos = c("left", "bottom"),lwd=0.75,col="grey75")+
tm_polygons(fill = "ID_label",col = "grey30",lwd=0.25,
fill.scale = tm_scale_intervals(values = c("red","blue","black"),
breaks = c(1,2,3,4), label.na = "NA"),
fill.legend = tm_legend(reverse=TRUE,title="",bg.color = 'white'))
image

tmap 3.99.9002

@mtennekes
Copy link
Member Author

With the latest commit, I get this, so without panel:

image

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

No branches or pull requests

2 participants