Skip to content

Commit 5291b59

Browse files
committed
replace vis_epicontacts with plot
1 parent 2090f55 commit 5291b59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

episodes/superspreading-estimate.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ With the argument `directed = TRUE` we configure a directed graph. These directi
126126

127127
```{r,eval=FALSE}
128128
# visualise contact network
129-
epicontacts::vis_epicontacts(epi_contacts)
129+
plot(epi_contacts)
130130
```
131131

132132
```{r,echo=FALSE}
133133
withr::with_envvar(c(OPENSSL_CONF = file.path("/dev", "null")), {
134134
# visualise contact network
135135
network <-
136-
vis_epicontacts(epi_contacts) %>%
136+
plot(epi_contacts) %>%
137137
visNetwork::visPhysics(solver = "barnesHut")
138138
fname <- "network.html"
139139
visNetwork::visSave(network, fname)
@@ -352,7 +352,7 @@ Calculate the distribution of secondary cases for Ebola using the `ebola_sim_cle
352352

353353
:::::::::::::::::: hint
354354

355-
⚠️ **Optional step:** This dataset has `r nrow(ebola_sim_clean$linelist)` cases. Running `epicontacts::vis_epicontacts()` may take several minutes and use significant memory for large outbreaks such as the Ebola linelist. If you're on an older or slower computer, you can skip this step.
355+
⚠️ **Optional step:** This dataset has `r nrow(ebola_sim_clean$linelist)` cases. Running `plot(<epicontacts>)` may take several minutes and use significant memory for large outbreaks such as the Ebola linelist. If you're on an older or slower computer, you can skip this step.
356356

357357
::::::::::::::::::
358358

0 commit comments

Comments
 (0)