Skip to content

Commit 8900eb1

Browse files
committed
use xlabel to move edge label location
1 parent 9f1ef0c commit 8900eb1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

episodes/compare-interventions.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The Vacamole model is a deterministic model based on a system of Ordinary Differ
250250

251251
The diagram below describes the flow of individuals through the different compartments.
252252

253-
```{r, echo = FALSE, message = FALSE}
253+
```{r, echo = FALSE, message = FALSE, out.width="80%"}
254254
DiagrammeR::grViz("digraph{
255255
# graph statement
256256
#################
@@ -281,9 +281,9 @@ DiagrammeR::grViz("digraph{
281281
# edges
282282
#######
283283
S -> E [label = ' infection (β) ']
284-
S -> V1 [label = ' vaccination (ν1)']
285-
V1 -> E [label = ' infection (β)']
286-
V1 -> V2 [label = ' vaccination\n(second dose) (ν2)']
284+
S -> V1 [xlabel = ' vaccination \n(ν1)']
285+
V1 -> E [xlabel = ' infection (β)']
286+
V1 -> V2 [xlabel = ' vaccination\n(second dose) (ν2)']
287287
V2 -> Ev [label = ' infection (β)']
288288
Ev -> Iv [label = ' onset of \ninfectiousness (α) ']
289289
E -> I [label = ' onset of \ninfectiousness (α) ']

0 commit comments

Comments
 (0)