From 79f83a69be1b655b77cf7dcb39abeb0683590eb8 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 7 Oct 2023 11:57:30 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1f41499..d6f1e4b 100644 --- a/README.md +++ b/README.md @@ -399,8 +399,8 @@ differential_vars <- c(TRUE,TRUE,FALSE) prob <- de$DAEProblem(f,du0,u0,tspan,differential_vars=differential_vars) sol <- de$solve(prob) udf <- as.data.frame(t(sapply(sol$u,identity))) -plotly::plot_ly(udf, x = sol$t, y = ~V1, type = 'scatter', mode = 'lines') %>% - plotly::add_trace(y = ~V2) %>% +plotly::plot_ly(udf, x = sol$t, y = ~V1, type = 'scatter', mode = 'lines') |> + plotly::add_trace(y = ~V2) |> plotly::add_trace(y = ~V3) ``` @@ -456,7 +456,7 @@ JuliaCall::julia_assign("constant_lags", tspan) prob <- JuliaCall::julia_eval("DDEProblem(f, u0, h, tspan, constant_lags = constant_lags)") sol <- de$solve(prob,de$MethodOfSteps(de$Tsit5())) udf <- as.data.frame(t(sapply(sol$u,identity))) -plotly::plot_ly(udf, x = sol$t, y = ~V1, type = 'scatter', mode = 'lines') %>% plotly::add_trace(y = ~V2) +plotly::plot_ly(udf, x = sol$t, y = ~V1, type = 'scatter', mode = 'lines') |> plotly::add_trace(y = ~V2) ``` ![delay](https://user-images.githubusercontent.com/1814174/39023532-10bdd750-43f0-11e8-837d-156d33ea2f99.png)