diff --git a/apt.txt b/apt.txt index a18b53c..1368b51 100644 --- a/apt.txt +++ b/apt.txt @@ -1 +1,2 @@ -zip \ No newline at end of file +zip +libglpk40 diff --git a/install.R b/install.R index 3fa575b..7cfb68b 100644 --- a/install.R +++ b/install.R @@ -1 +1,5 @@ -install.packages("graphlayouts") +install.packages(c( + "graphlayouts", + "ggraph", + "igraph" +)) diff --git a/methodshub.qmd b/methodshub.qmd index 3be4daa..42438bb 100644 --- a/methodshub.qmd +++ b/methodshub.qmd @@ -139,6 +139,8 @@ You can customize almost every aspect of the plot: ```{r} V(g)$deg <- degree(g) +lay <- create_layout(g, layout = "stress") + ggraph(lay) + geom_edge_link(alpha = 0.3) + geom_node_point(aes(size = deg), color = "tomato") +