<div dir="ltr">Brian,<div><br></div><div style>Thanks for clarifying, I was worried that might be the case. I could add a new function named chart.RiskReward and make that our generic function and use an alias for the existing chart.Scatter.* functions. It could look something like this:</div>
<div style><br></div><div style>chart.RiskReward.optimize.portfolio.ROI <- chart.Scatter.ROI</div><div style>chart.RiskReward.optimize.portfolio.random <- chart.Scatter.RP<br></div><div style><br></div><div style>Would that be ok and worthwhile to do?</div>
<div style><br></div><div style>Ross</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 18, 2013 at 12:05 PM, Brian G. Peterson <span dir="ltr"><<a href="mailto:brian@braverock.com" target="_blank">brian@braverock.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08/18/2013 01:35 PM, Ross Bennett wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The PerformanceAnalytics packages already has a chart.Scatter function.<br>
Will we have any naming or masking issues if I make chart.Scatter a<br>
function for the different optimize.portfolio.objects?<br>
</blockquote>
<br>
It's easy to make chart.Weights a generic, but it will be much harder with chart.Scatter.*<br>
<br>
Because Performanceanalytics is on CRAN and much more widely used, we'd need to match the argument list, and create a chart.Scatter.default in PerfA. I don't see any way to match the argument list though.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Brian<br>
______________________________<u></u>_________________<br>
GSoC-PortA mailing list<br>
<a href="mailto:GSoC-PortA@lists.r-forge.r-project.org" target="_blank">GSoC-PortA@lists.r-forge.r-<u></u>project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/gsoc-porta" target="_blank">http://lists.r-forge.r-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/gsoc-porta</a><br>
</font></span></blockquote></div><br></div>