Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将图表对象从performanceanalytics包中保存到一个对象中,就像使用ggplot2orlattice图表一样?
performanceanalytics
ggplot2
lattice
例如这张蜗牛足迹图。
最简洁的答案是不。
如果您查看 的源代码chart.SnailTrail,您会发现它使用了基本的绘图功能(例如plot.new()、points()、segments()、text()、axis()、title()、legend())。
chart.SnailTrail
plot.new()
points()
segments()
text()
axis()
title()
legend()
当然,您可以ggplot2改用函数重写函数。如果您这样做,我建议在您自己的包或PerformanceAnalytics包中提供新功能作为您问题的答案。
PerformanceAnalytics