【问题标题】:tmap legend outside title font size adjustingtmap 图例标题字号外调整
【发布时间】:2020-10-15 16:33:39
【问题描述】:

这不是一个代表。 我有很长标题的地图。我把我的传说放在外面。字体很小,我无法控制它。参数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

【问题讨论】:

    标签: r tmap


    【解决方案1】:

    我找到了解决方案:使用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)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-01
      • 2018-07-30
      • 2020-12-07
      • 2020-07-08
      • 2020-08-04
      • 2020-02-09
      • 1970-01-01
      • 2015-12-29
      相关资源
      最近更新 更多