Skip to content

Commit 6be7e0d

Browse files
committed
replace vis_epicontacts with plot
1 parent 4026388 commit 6be7e0d

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
@@ -108,14 +108,14 @@ With the argument `directed = TRUE` we configure a directed graph. These directi
108108

109109
```{r,eval=FALSE}
110110
# visualise contact network
111-
epicontacts::vis_epicontacts(epi_contacts)
111+
plot(epi_contacts)
112112
```
113113

114114
```{r,echo=FALSE}
115115
withr::with_envvar(c(OPENSSL_CONF = file.path("/dev", "null")), {
116116
# visualise contact network
117117
network <-
118-
vis_epicontacts(epi_contacts) %>%
118+
plot(epi_contacts) %>%
119119
visNetwork::visPhysics(solver = "barnesHut")
120120
fname <- "network.html"
121121
visNetwork::visSave(network, fname)
@@ -334,7 +334,7 @@ Calculate the distribution of secondary cases for Ebola using the `ebola_sim_cle
334334

335335
:::::::::::::::::: hint
336336

337-
⚠️ **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.
337+
⚠️ **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.
338338

339339
::::::::::::::::::
340340

0 commit comments

Comments
 (0)