在plot.xts中设置颜色
使用plot.xts时是否有解决方法来设置颜色?
此错误< /a> (在 0.8.2 中仍然存在)使得它变得不可能。我知道我可以使用plot.zoo,但我想知道是否有更干净的解决方案,因为该错误看起来不会很快得到修复:)
Is there a workaround to set the color when using plot.xts
?
This bug (still present in 0.8.2) makes it impossible. I know I could use plot.zoo
but I was wondering if there was a cleaner solution since that bug doesn't look like is going to get fixed any time soon :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是一个修补版本。我必须从 xts 导出 is.OHLC 才能使其正常工作。我希望没有副作用。我添加了一个参数 col 并将其显式传递给
plot
。Here's a patched version. I had to export
is.OHLC
from xts to make it work. I hope there are no side effects. I added an argument col and passed it toplot
explicitly.使用 xts v0.9-7 进行测试
Tested with xts v0.9-7