![](/img/trans.png)
[英]Left justify a column using textplot (gplots or PerformanceAnalytics)
[英]text alignment with textplot() (PerformanceAnalytics package)
我想使用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)
如何在每一列中正确对齐文本(在任何方向上)?
如果您修改textplot调用,这是您想要的吗?
textplot(tabindex, halign="left", valign="center", cmar = 0.5, cex=0.8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.