plotting multiple xts objects in one window

僤鯓⒐⒋嵵緔 提交于 2019-12-04 08:02:38

You could coerce to zoo to use plot.zoo:

plot(as.zoo(x), screens=1)
plot(as.zoo(x), plot.type='single')

Or, you could install xtsExtra which has a newer plot.xts method

#install.packages("xtsExtra", repos='http://r-forge.r-project.org')
library(xtsExtra)
plot(x, screens=1)
Ben Cann

I could be wrong but I think plot.xts is no longer part of xtsExtra and has moved to the main xts. Source. Maybe this note will help people in the future trying to figure out plotting in xts..

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!