I don't have the code nearby, but later today I'll post the patched version to the site as well as to the list. 

?persp may be all you need though

Jeff

Jeffrey Ryan    |    Founder    |    jeffrey.ryan@lemnica.com

www.lemnica.com

On Nov 28, 2012, at 9:50 AM, sean fallon <sf99167@yahoo.com> wrote:

> 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@gmail.com>
> To: Maximilian Lklweryc <maxlklweryc@gmail.com> 
> Cc: r-sig-finance@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@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.
> 
> 
> <chartSeries3d.alpha.R>
> _______________________________________________
> R-SIG-Finance@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.

	[[alternative HTML version deleted]]

