Skip to content

Commit 79f83a6

Browse files
Update README.md
1 parent ff34617 commit 79f83a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ differential_vars <- c(TRUE,TRUE,FALSE)
399399
prob <- de$DAEProblem(f,du0,u0,tspan,differential_vars=differential_vars)
400400
sol <- de$solve(prob)
401401
udf <- 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)
456456
prob <- JuliaCall::julia_eval("DDEProblem(f, u0, h, tspan, constant_lags = constant_lags)")
457457
sol <- de$solve(prob,de$MethodOfSteps(de$Tsit5()))
458458
udf <- 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

Comments
 (0)