R xts :: plot.xts multi.panel不会产生数据

时间:2015-02-19 16:39:31

标签: r plot xts

R的xtsExtra :: plot.xts no longer supports ncauto.grid。我正在尝试使用xts :: plot.xts的multi.panel,但第一个问题是所有面板都是空白的:

$ svn checkout --revision 875 svn://svn.r-forge.r-project.org/svnroot/xts/
$ R
...
install.packages("xts/pkg/xts", repos=NULL, type="source")
library(zoo)
library(xts)
timezone = "UTC"
Sys.setenv(TZ=timezone)
sampleData = "Time (UTC),CPU,Runqueue,Blocked,MemoryFree,PageIns,ContextSwitches,Wait,Steal
2014-10-15 16:12:11,20,0,0,12222172,0,2549,0,0
2014-10-15 16:12:12,27,1,0,12220732,0,3619,0,0
2014-10-15 16:12:13,30,0,0,12220212,0,2316,0,0"
data = as.xts(read.zoo(text=sampleData, format="%Y-%m-%d %H:%M:%S", header=TRUE, sep=",", tz=timezone))
plot.xts(data, main="Title", multi.panel=TRUE, minor.ticks=FALSE, yax.right=FALSE)

xts plot with multi.panel

0 个答案:

没有答案