[R-SIG-Finance] Plot GBM density in a 3 d plot

sean fallon sf99167 at yahoo.com
Wed Nov 28 16:50:49 CET 2012


Hi Daniel,
 
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. 
 
The new URL is http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldYear&year=2008

I have tried putting it into the code but come up with the following error
 
> TR<-getUSTreasuries("2008")
http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx_2008.shtml 
> chartSeries3d0(TR)
Error in if (on == "years") { : missing value where TRUE/FALSE needed

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.
 
regards
 
Sean  

________________________________
 From: Daniel Cegiełka <daniel.cegielka at gmail.com>
To: Maximilian Lklweryc <maxlklweryc at gmail.com> 
Cc: r-sig-finance at r-project.org 
Sent: Wednesday, November 28, 2012 7:09 PM
Subject: Re: [R-SIG-Finance] Plot GBM density in a 3 d plot
  
Hi, this may be useful as an example:

http://www.quantmod.com/examples/chartSeries3d/
http://www.quantmod.com/examples/chartSeries3d/chartSeries3d.alpha.R

Best regards,
Daniel

    [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20121128/9ba43791/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chartSeries3d.alpha.R
Type: application/octet-stream
Size: 4280 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20121128/9ba43791/attachment.obj>


More information about the R-SIG-Finance mailing list