如何将图例编号和文本加粗?
问题描述:
我使用绘图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)图例标题
答
我不确定这个答案。但是,在这种情况下,设置gp参数会起作用吗?
grid.text('Test', y=unit(0.025, "npc"),
rot=360, x=unit(0.5, "npc"),
gp=gpar(fontsize = 20, fontface="bold"))
答
对于打勾号码,请尝试添加font = 2
?
colorkey = list(space = "bottom", height = 1, labels = list(font = 2))
Damiano Fantini的解决方案适用于我的图例标题。
你的问题也是对的。谢谢! – maximusdooku