aboutsummaryrefslogtreecommitdiff
path: root/results
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2024-03-27 16:06:11 +0100
committerLoic Guegan <loic.guegan@mailbox.org>2024-03-27 16:06:11 +0100
commitf516455f080ab9c1796ace7c3a5819d07b1a2aa3 (patch)
treebbbd213d444f95cbfa71953b4a8c3c1dd65188bb /results
parent480900c124ce227664ab7ae59561cb9f928efbda (diff)
Minor changes
Diffstat (limited to 'results')
-rw-r--r--results/pareto.R8
-rw-r--r--results/pareto.pdfbin91033 -> 90771 bytes
2 files changed, 4 insertions, 4 deletions
diff --git a/results/pareto.R b/results/pareto.R
index 7411e3b..a1cebd2 100644
--- a/results/pareto.R
+++ b/results/pareto.R
@@ -67,9 +67,9 @@ return(rbind(total60%>%mutate(wakeupfor=60),total180%>%mutate(wakeupfor=180)))
}
# Load stats
-stats_sor=build_stats("logs/sor_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="Shutdown on\nreceive")
-stats_uor=build_stats("logs/uor_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="Unschedule on\nreceive")
-stats_fh=build_stats("logs/farhint_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="Far hint")
+stats_sor=build_stats("logs/sor_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="SOR")
+stats_uor=build_stats("logs/uor_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="UOR")
+stats_fh=build_stats("logs/farhint_results/results.csv")%>%filter(type=="Sender")%>%mutate(strategy="FH")
stats=rbind(stats_sor,stats_uor,stats_fh)%>%filter(wireless=="nbiot",wakeupfor==60) # Change filter as you which (which plot you want down bellow)
@@ -96,7 +96,7 @@ ggplot(stats%>%dformat(),aes(energy,success,color=simkey,shape=strategy))+
geom_line(data=pareto,aes(energy,success),linetype="dashed", size=1,inherit.aes=FALSE)+
geom_point(alpha=0.1,size=4)+
geom_point(data=pareto,size=4)+scale_y_reverse()+
- labs(color="Policies:",shape="Strategies:")+scale_color_brewer(palette = "Spectral")+theme_minimal()+theme(legend.position="top")+
+ labs(color="Policies:",shape="Strategies:")+scale_color_brewer(palette = "Spectral")+theme_minimal()+theme(legend.position="top", text=element_text(size=20))+
xlab("Sender energy consumption (J)")+ylab(TeX(r'(#Succ$_p$)'))
# +facet_wrap(~wakeupfor+wireless,scale="free")
ggsave("pareto.pdf",width=9,height=9)
diff --git a/results/pareto.pdf b/results/pareto.pdf
index 1345c83..c887242 100644
--- a/results/pareto.pdf
+++ b/results/pareto.pdf
Binary files differ