Create a 3D plotly surface plot -


i have data frame below , want create 3d plotly surface plot this: https://plot.ly/r/3d-surface-plots/#basic-3d-surface-plot

ideally date "z" im not sure this.

any suggestions on how proceed?

date=c("1/1/2017","1/2/2017","1/3/2017","1/4/2017","1/5/2017","1/6/2017","1/7/2017","1/8/2017" ) treasury_1m=c(0.5,  0.48,   0.66,   0.75,   0.73,   0.84,   0.97,   0.98) treasury_3m=c(  0.52,   0.53,   0.75,   0.81,   0.9,    1,  1.09,   1.03) treasury_6m=c(  0.62,   0.65,   0.89,   0.95,   1.04,   1.11,   1.13,   1.13) treasury_1y=c(0.5,  0.48,   0.66,   0.75,   0.73,   0.84,   0.97,   0.98) treasury_2y=c(  0.52,   0.53,   0.75,   0.81,   0.9,    1,  1.09,   1.03) treasury_5y=c(  0.62,   0.65,   0.89,   0.95,   1.04,   1.11,   1.13,   1.13) treasury_10y=c(0.5, 0.48,   0.66,   0.75,   0.73,   0.84,   0.97,   0.98) treasury_30y=c( 0.52,   0.53,   0.75,   0.81,   0.9,    1,  1.09,   1.03) df = data.frame(date,treasury_1m ,treasury_3m,treasury_6m,treasury_1y,treasury_2y,treasury_5y,treasury_10y,treasury_30y) 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -