R中是否有一个包允许我绘制彼此相邻的乘法时间序列3D?
如以下示例所示:
http://farm6.staticflickr.com/5142/5619005462_5eab3c8cdd_b.jpg
http://synoptic.weaintplastic.com/
由于
答案 0 :(得分:3)
您是否从quantmod包中检出了chartSeries3d0?
这是我在quantmod.com上找到的一个例子:
library(quantmod)
source("http://www.quantmod.com/examples/chartSeries3d/chartSeries3d.alpha.R")
getSymbols("DGS1MO;DGS3MO;DGS6MO;DGS1;DGS2;DGS3;DGS5;DGS7;DGS10;DGS20;DGS30",src="FRED")
TR <- merge(DGS1MO,DGS3MO,DGS6MO,DGS1,DGS2,DGS3,DGS5,DGS7,DGS10,DGS20,DGS30, all=FALSE)
colnames(TR) <- c("1mo","3mo","6mo","1yr","2yr","3yr","5yr","7yr","10yr","20yr","30yr")
TR <- na.locf(TR)
chartSeries3d0(TR["2011"])