[英]text alignment with textplot() (PerformanceAnalytics package)
I would like to align text in a table using textplot(). 我想使用textplot()将表格中的文本对齐。 Here's my code: 这是我的代码:
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)
How can I align a text properly (in any direction) in each column? 如何在每一列中正确对齐文本(在任何方向上)?
If you modify your textplot call, is this what you want? 如果您修改textplot调用,这是您想要的吗?
textplot(tabindex, halign="left", valign="center", cmar = 0.5, cex=0.8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.