简体   繁体   中英

Save chart object from performanceanalytics package

Is it possible to save the chart object from the performanceanalytics package into an object like one can do with the ggplot2 or lattice chart?

For example this snail trail chart .

The short answer is no.

If you look at the source code of chart.SnailTrail , you can see that it uses basic plotting functionality (eg plot.new() , points() , segments() , text() , axis() , title() , legend() ).

Of course you could rewrite the function with ggplot2 functions instead. If you do so, I suggest making the new function available as an answer to your question, in your own package or in the PerformanceAnalytics package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM