2017-08-25 38 views
1

我使用繪圖2個柵格這樣的:如何將圖例編號和文本加粗?

spplot(r, colorkey = list(space = "bottom", height = 1)) + 
    spplot(merged, cex=0.5, col.regions="green") 
grid.text('Test', y=unit(0.025, "npc"), 
      rot=360, x=unit(0.5, "npc")) 

我怎樣才能讓下面的東西在大膽和/或增加的大小 - 一)蜱號B)圖例標題

enter image description here

回答

4

我不確定這個答案。但是,在這種情況下,設置gp參數會起作用嗎?

grid.text('Test', y=unit(0.025, "npc"), 
      rot=360, x=unit(0.5, "npc"), 
      gp=gpar(fontsize = 20, fontface="bold")) 
3

對於打勾號碼,請嘗試添加font = 2

colorkey = list(space = "bottom", height = 1, labels = list(font = 2)) 

Damiano Fantini的解決方案適用於我的圖例標題。

+0

你的問題也是對的。謝謝! – maximusdooku