使用textplot()进行文本对齐(PerformanceAnalytics包)

时间:2015-03-11 11:22:17

标签: r

我想使用textplot()在表格中对齐文本。这是我的代码:

liste<-list(1,2)
tabindex<-data.frame(liste)
colnames(tabindex)<-c("Abreviation","Definition")
tabindex[1,]<-c("SAI : ","Strategy AI : stock's weight depending on AI")
tabindex<-rbind(tabindex,"")
tabindex[2,]<-c("SBH : ","Strategy BH : constant stock's weight")
textplot(tabindex,hadj=0,cex=0.8)

如何在每列中正确对齐文本(在任何方向上)?

1 个答案:

答案 0 :(得分:0)

如果您修改了textplot调用,这是您想要的吗?

textplot(tabindex, halign="left", valign="center", cmar = 0.5, cex=0.8)

enter image description here