Skip to content

Commit bb8f846

Browse files
authored
Update network_plots.stargraph.R
1 parent ace36aa commit bb8f846

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/network_plots.stargraph.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ g3=ggplot(connectivity_prop_jac)+
6868
##plot the network plus the counts of unconnected
6969
plot_jac=ggarrange(g1,g2,g3, ncol = 3, widths = c(10,1,1))
7070

71-
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.jaccard.png", plot = plot_jac, units = "in", height = 300, width = 400, limitsize = FALSE)))
72-
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.jaccard.svg", plot = plot_jac, units = "in", height = 300, width = 400, limitsize = FALSE)))
71+
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.jaccard.png", plot = plot_jac, units = "in", height = 8, width = 14, limitsize = FALSE)))
72+
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.jaccard.svg", plot = plot_jac, units = "in", height = 8, width = 14, limitsize = FALSE)))
7373

7474

7575
################################################################
@@ -85,7 +85,7 @@ graph_cont = tbl_graph(nodes = nodes, edges = edges_cont, directed = FALSE)
8585
g4=ggraph(graph_cont, layout = "fr") +
8686
geom_edge_link(aes(edge_alpha = weight), edge_colour = "black", show.legend = FALSE) +
8787
geom_node_point(size = 3, aes(colour = type)) +
88-
theme_void() +
88+
theme_no_axes()+theme(legend.position = "bottom", legend.title = element_blank()) +
8989
theme(legend.position = "top",plot.margin = unit(rep(1, 4), "cm"),legend.title=element_blank())+
9090
scale_color_manual(values=c("blue", "red"))
9191

@@ -131,6 +131,6 @@ g6=ggplot(connectivity_prop_cont)+
131131
plot_cont=ggarrange(g4,g5,g6, ncol = 3, widths = c(10,1,1))
132132

133133

134-
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.containment.png", plot = plot_cont, units = "in", height = 300, width = 400, limitsize = FALSE)))
135-
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.containment.svg", plot = plot_cont, units = "in", height = 300, width = 400, limitsize = FALSE)))
134+
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.containment.png", plot = plot_cont, units = "in", height = 8, width = 14, limitsize = FALSE)))
135+
suppressMessages(suppressWarnings(ggsave("PATHTOOUTPUT/network_plotting.containment.svg", plot = plot_cont, units = "in", height = 8, width = 14, limitsize = FALSE)))
136136

0 commit comments

Comments
 (0)