5
当我使用左对齐字符串创建tableGrob时,最终结果显示在末尾截断了字符串。 是错误还是我错过了什么?使用表左对齐不正确
library(gridExtra)
slices <- c(10, 12, 4, 16, 8)
lbls <- c("US", "UK", "long string left justified but is clipped at the end", "Germany", "France")
z <- data.frame(lbls,slices)
grid.newpage()
grid.draw(tableGrob(z, core.just="left"))
效果不错+1!顺便说一句,好幽默!我错了还是你是作者? :-) – Michele
尽管有这些弃用,tableGrob仍然是一个非常有用的工具。 –
我刚刚用“\ n”和'padding.h = unit(10,“mm”)对其进行了测试,结果非常好。 –