簡體   English   中英

使用textplot()進行文本對齊(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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM