【发布时间】:2014-12-27 10:34:21
【问题描述】:
是否可以将 performanceanalytics 包中的图表对象保存到像 ggplot2 或 lattice 图表那样的对象中?
【问题讨论】:
标签: r ggplot2 performanceanalytics
是否可以将 performanceanalytics 包中的图表对象保存到像 ggplot2 或 lattice 图表那样的对象中?
【问题讨论】:
标签: r ggplot2 performanceanalytics
简短的回答是否定的。
如果你查看chart.SnailTrail的源代码,你会发现它使用了基本的绘图功能(例如plot.new()、points()、segments()、text()、axis()、title()、 legend())。
当然,您可以改用ggplot2 函数重写该函数。如果您这样做,我建议在您自己的包或 PerformanceAnalytics 包中提供新功能作为您问题的答案。
【讨论】: