<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Daniel,</span></div><div><span></span> </div><div><span>Am trying to replicate the 3D chart but the URL for US treasuries has been changed. Have tried getting the latest URL into the code but coming up short. Where am I going wrong. </span></div><div><span></span> </div><div><span>The new URL is <a href="http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldYear&year=2008">http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldYear&year=2008</a></span><span><br></span></div><div>I have tried putting it into the code but come up with the following error</div><div> </div><div>> TR<-getUSTreasuries("2008")<br><a
 href="http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx_2008.shtml">http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx_2008.shtml</a> <br>> chartSeries3d0(TR)<br>Error in if (on == "years") { : missing value where TRUE/FALSE needed<br></div><div>I am attaching the R code for your perusal/review/correction. Please do let me know where I am going wrong. Any advise/constructive criticism highly appreciated.</div><div> </div><div>regards</div><div> </div><div>Sean</div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false"
 readonly="true"></div>  <b><span style="font-weight: bold;">From:</span></b> Daniel Cegiełka <daniel.cegielka@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Maximilian Lklweryc <maxlklweryc@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> r-sig-finance@r-project.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, November 28, 2012 7:09 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [R-SIG-Finance] Plot GBM density in a 3 d plot<br> </font> </div> <br>
Hi, this may be useful as an example:<br><br>http://www.quantmod.com/examples/chartSeries3d/<br>http://www.quantmod.com/examples/chartSeries3d/chartSeries3d.alpha.R<br><br>Best regards,<br>Daniel<br><br>    [[alternative HTML version deleted]]<br><br>_______________________________________________<br><a href="mailto:R-SIG-Finance@r-project.org" ymailto="mailto:R-SIG-Finance@r-project.org">R-SIG-Finance@r-project.org</a> mailing list<br><a href="https://stat.ethz.ch/mailman/listinfo/r-sig-finance" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-finance</a><br>-- Subscriber-posting only. If you want to post, subscribe first.<br>-- Also note that this is not the r-help list where general R questions should go.<br><br><br> </div> </div>  </div></body></html>