0
我想改變上面提到的圖表中的一些參數。具體而言,我想做到以下幾點:chart.CumReturns(Perf。Analytics)的圖表參數
- 使得軸標籤和ylab小
- 刪除標題和騰出的空間用於圖表
- 對準ylabels水平,而不是垂直
我的代碼如下
opar <- par(oma = c(0.1,0.2,0,0.1))
par(mar=c(0,0,0,0),plt=c(0,0.1,0,0.1),mgp=c(3,0.5,0),pin=c(1,1),fin=c(0.2,0.2),
las=1,mex=0.5,cex.main=0.6,cex.lab=0.3,cex.axis=0.3)
chart.CumReturns(returns_ts,geometric=TRUE,wealth.index=TRUE,main="",xlab="",col=hblue,cex.axis=0.8,cex.lab=0.6,las=1)
par(xpd=NA)
legend(legend=paste(paste(c("Performance indexiert"),strats[i])),cex=0.7, col=hblue,lty=1, lwd=2, bty="n",
text.col="black", ncol=1, "bottom", inset = c(0.0, -.20))
text_note=c(paste("Quelle: Bloomberg,", "letzter Datenpunkt:", last(data$date)))
mtext(text_note ,cex=0.4,col=hgrey,side = 1, line = 4, outer = FALSE,padj=0,adj=1) #ensures that the text is shown at the
grid.raster(pic,x=c(0.05),y=c(0.02),width=0.05,height=0.03)
然而,什麼也沒有發生,即沒有的,參數被改變。我也試過
main=NULL
然後,時間系列的名字出現了。
你能幫我嗎?
問候 安德烈亞斯
感謝您的支持。我將如何最好地利用你的修復?創建一個新的功能或覆蓋您的原始功能?這將如何工作?我的另一個問題是,似乎無法在PerformanceSummary圖表的條形圖中繪製多個系列。如果可以的話,那將很棒。安德烈亞斯 – user2157086