aboutsummaryrefslogtreecommitdiff
path: root/results/analysis4_scalability.R
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-03-22 15:11:32 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-03-22 15:11:32 +0100
commit5b818e9c184ef446ef0176aa3d239339146f2ab9 (patch)
treed85111872ce0246fb415436780595d7c49ac2120 /results/analysis4_scalability.R
parent41d0a708292759bb832c5b8a453512e03cc97440 (diff)
Update analysis
Diffstat (limited to 'results/analysis4_scalability.R')
-rw-r--r--results/analysis4_scalability.R16
1 files changed, 11 insertions, 5 deletions
diff --git a/results/analysis4_scalability.R b/results/analysis4_scalability.R
index d799276..b1dae61 100644
--- a/results/analysis4_scalability.R
+++ b/results/analysis4_scalability.R
@@ -104,9 +104,15 @@ receiver180sPlotSuccess=ggplot(statsReceiver%>%filter(wakeupfor==180),aes(n_node
-w=15
-h=9
-space=2
-ggsave("scalability_60s.pdf",plot=(sender60sPlotEnergy+theme(plot.margin=unit(c(0.1,space,0,0),"cm"))+receiver60sPlotEnergy)/sender60sPlotSuccess+plot_layout(guides = 'collect')&theme(legend.position="bottom"),width=w,height=h)
-ggsave("scalability_180s.pdf",plot=(sender180sPlotEnergy+theme(plot.margin=unit(c(0.1,space,0,0),"cm"))+receiver180sPlotEnergy)/sender180sPlotSuccess+plot_layout(guides = 'collect')&theme(legend.position="bottom"),width=w,height=h)
+w1=7
+h1=4
+w2=15
+h2=4
+ggsave("scalability_60s_sender_energy.pdf",plot=sender60sPlotEnergy+guides(fill = FALSE, color = FALSE),width=w1,height=h1)
+ggsave("scalability_60s_receiver_energy.pdf",plot=receiver60sPlotEnergy+guides(fill = FALSE, color = FALSE),width=w1,height=h1)
+ggsave("scalability_60s_success.pdf",plot=sender60sPlotSuccess,width=w2,height=h2)
+
+ggsave("scalability_180s_sender_energy.pdf",plot=sender180sPlotEnergy+guides(fill = FALSE, color = FALSE),width=w1,height=h1)
+ggsave("scalability_180s_receiver_energy.pdf",plot=receiver180sPlotEnergy+guides(fill = FALSE, color = FALSE),width=w1,height=h1)
+ggsave("scalability_180s_success.pdf",plot=sender180sPlotSuccess,width=w2,height=h2)