R tmap图例外部标题字体大小调整

R tmap图例外部标题字体大小调整,r,tmap,R,Tmap,这不是雷普雷克斯。 我有很长标题的地图。我把我的传说放在外面。字体太小了,我控制不了。参数title.size=2无效 map_cp <- tm_shape(choro) + tm_polygons(col = "taux", style = "jenks", legend.hist = TRUE) + tm_borders("#9E9E9E") + tm_s

这不是雷普雷克斯。 我有很长标题的地图。我把我的传说放在外面。字体太小了,我控制不了。参数
title.size=2
无效

 map_cp <- tm_shape(choro) +
        tm_polygons(col = "taux", style = "jenks",
                 legend.hist = TRUE) +
        tm_borders("#9E9E9E") +
  tm_shape(sgf_centro) +
  tm_symbols(col = "#f50057", alpha = 0.1, border.col = "#f50057",
  size = centro_var,
  perceptual = TRUE,
  scale = 2) +
   tm_layout(title = label$LIBELLE, title.size = 0.6,legend.outside = TRUE) 

map_cp

map\u cp我找到了一个解决方案:使用
main.title
函数

 map_cp <- tm_shape(choro) +
     tm_polygons(col = "taux", style = "jenks",
                 legend.hist = TRUE) +
     tm_borders("#9E9E9E") +
tm_shape(sgf_centro) +
tm_symbols(col = "#f50057", alpha = 0.1, border.col = "#f50057", size = 
 sgf_var, perceptual =TRUE, scale = 2) +
tm_layout(main.title = label$LIBELLE, main.title.size = 1,legend.outside = TRUE) 


 print(map_cp)

map\u cp我找到了一个解决方案:使用
main.title
函数

 map_cp <- tm_shape(choro) +
     tm_polygons(col = "taux", style = "jenks",
                 legend.hist = TRUE) +
     tm_borders("#9E9E9E") +
tm_shape(sgf_centro) +
tm_symbols(col = "#f50057", alpha = 0.1, border.col = "#f50057", size = 
 sgf_var, perceptual =TRUE, scale = 2) +
tm_layout(main.title = label$LIBELLE, main.title.size = 1,legend.outside = TRUE) 


 print(map_cp)
map\u cp