tmap

Customize how R tmap legend values are printed

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 18:52:16
问题 Is there a way to customize how R tmap legend values are printed? Instead of: ...I want to achieve the following classification in order to avoid printing two times the same value: 248-500 50 1 -1000 (501 instead of 500) 100 1 -10000 (1001 instead of 1000) 1000 1 -20000 (10001 instead of 10000) 2000 1 -21588 (20001 instead of 20000) Also I would like to print all "-" exactly beneath each other so that all tens, hundreds and thousend values are easily comparable. This image illustrates the

Remove legend in tmap in R

北战南征 提交于 2020-07-03 17:06:12
问题 I have a simple question: How does one remove an automatically added legend in tmap in R? In this case, I want to remove that legend on the right, depicting 'level'. Here's what I've tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_legend(show=FALSE) I have also tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_layout(legend.show=FALSE) Not sure why

Remove legend in tmap in R

僤鯓⒐⒋嵵緔 提交于 2020-07-03 17:00:12
问题 I have a simple question: How does one remove an automatically added legend in tmap in R? In this case, I want to remove that legend on the right, depicting 'level'. Here's what I've tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_legend(show=FALSE) I have also tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_layout(legend.show=FALSE) Not sure why

Remove legend in tmap in R

不问归期 提交于 2020-07-03 16:59:51
问题 I have a simple question: How does one remove an automatically added legend in tmap in R? In this case, I want to remove that legend on the right, depicting 'level'. Here's what I've tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_legend(show=FALSE) I have also tried: tm_shape(densities$polygons)+ tm_polygons(col='level', palette='Reds', alpha=0.5, border.col = 'transparent') + tm_layout(legend.show=FALSE) Not sure why