R 有没有办法使用tm_布局自定义图例直方图

R 有没有办法使用tm_布局自定义图例直方图,r,tmap,R,Tmap,请看我用tmap包在下面绘制的地图。我没有找到任何可以用来自定义直方图图例字体的参数。从下面的代码中,您可以看到我已经设置了legend.text.fontface='bold'。然而,这并没有起作用 psp1 <- tm_shape(province) + tm_borders(col = 'black') + tm_shape(county) + tm_polygons(col = '+1 °C', title = 'Changes in %', style =

请看我用
tmap
包在下面绘制的地图。我没有找到任何可以用来自定义直方图图例字体的参数。从下面的代码中,您可以看到我已经设置了
legend.text.fontface='bold'
。然而,这并没有起作用

psp1 <-   tm_shape(province) + 
  tm_borders(col = 'black') + 
  tm_shape(county) + 
  tm_polygons(col = '+1 °C', title = 'Changes in %', style = 'pretty', aes.palette = 'div', n=5, legend.hist = T) + 
  tm_compass(north = 0, type = 'arrow', show.labels =0, position = c('right','top')) + 
  tm_layout(legend.format = list(fun = function(x) formatC(x, digits = 1, format = "f")),
    legend.outside = T, legend.outside.position = 'bottom',
    legend.hist.width = 1,
    legend.hist.height = 0.5,
    legend.stack = 'horizontal',
    legend.title.fontface = 'bold',
    legend.text.fontface = 'bold')

psp1