@@ -399,8 +399,8 @@ differential_vars <- c(TRUE,TRUE,FALSE)
399399prob <- de $ DAEProblem(f ,du0 ,u0 ,tspan ,differential_vars = differential_vars )
400400sol <- de $ solve(prob )
401401udf <- as.data.frame(t(sapply(sol $ u ,identity )))
402- plotly :: plot_ly(udf , x = sol $ t , y = ~ V1 , type = ' scatter' , mode = ' lines' ) % > %
403- plotly :: add_trace(y = ~ V2 ) % > %
402+ plotly :: plot_ly(udf , x = sol $ t , y = ~ V1 , type = ' scatter' , mode = ' lines' ) | >
403+ plotly :: add_trace(y = ~ V2 ) | >
404404 plotly :: add_trace(y = ~ V3 )
405405```
406406
@@ -456,7 +456,7 @@ JuliaCall::julia_assign("constant_lags", tspan)
456456prob <- JuliaCall :: julia_eval(" DDEProblem(f, u0, h, tspan, constant_lags = constant_lags)" )
457457sol <- de $ solve(prob ,de $ MethodOfSteps(de $ Tsit5()))
458458udf <- as.data.frame(t(sapply(sol $ u ,identity )))
459- plotly :: plot_ly(udf , x = sol $ t , y = ~ V1 , type = ' scatter' , mode = ' lines' ) % > % plotly :: add_trace(y = ~ V2 )
459+ plotly :: plot_ly(udf , x = sol $ t , y = ~ V1 , type = ' scatter' , mode = ' lines' ) | > plotly :: add_trace(y = ~ V2 )
460460```
461461
462462![ delay] ( https://user-images.githubusercontent.com/1814174/39023532-10bdd750-43f0-11e8-837d-156d33ea2f99.png )
0 commit comments