@@ -58,6 +58,58 @@ all_values <- bind_rows(
5858 cluster_info_dist
5959 )
6060
61+ highest_mean_besttree_bootstrap_support = all_values | >
62+ filter(
63+ value_type == " bestTree bootstrap support"
64+ ) | >
65+ mutate(
66+ full_model = str_c(
67+ value_type ,
68+ max_missing ,
69+ model ,
70+ sep = " _"
71+ )
72+ ) | >
73+ group_by(full_model ) | >
74+ summarise(mean = mean(value )) | >
75+ slice_max(mean , n = 1 ) | >
76+ pull(full_model )
77+
78+ highest_mean_consensustree_bootstrap_support = all_values | >
79+ filter(
80+ value_type == " consensusTree bootstrap support"
81+ ) | >
82+ mutate(
83+ full_model = str_c(
84+ value_type ,
85+ max_missing ,
86+ model ,
87+ sep = " _"
88+ )
89+ ) | >
90+ group_by(full_model ) | >
91+ summarise(mean = mean(value )) | >
92+ slice_max(mean , n = 1 ) | >
93+ pull(full_model )
94+
95+ lowest_mean_mltrees_cluster_info_dist = all_values | >
96+ filter(
97+ value_type == " mlTrees cluster info dist"
98+ ) | >
99+ mutate(
100+ full_model = str_c(
101+ value_type ,
102+ max_missing ,
103+ model ,
104+ sep = " _"
105+ )
106+ ) | >
107+ group_by(full_model ) | >
108+ summarise(mean = mean(value )) | >
109+ slice_min(mean , n = 1 ) | >
110+ pull(full_model )
111+
112+
61113support_across_missingness <- ggplot(
62114 all_values ,
63115 aes(
@@ -66,7 +118,31 @@ support_across_missingness <- ggplot(
66118 )
67119 ) +
68120 geom_violin(
69- draw_quantiles = c(0.25 , 0.5 , 0.75 )
121+ draw_quantiles = c(0.25 , 0.5 , 0.75 ),
122+ aes(
123+ color = factor (
124+ str_c(
125+ value_type ,
126+ max_missing ,
127+ model ,
128+ sep = " _"
129+ )
130+ )
131+ )
132+ ) +
133+ scale_color_manual(
134+ str_wrap(
135+ " best model for respective value" ,
136+ width = 12
137+ ),
138+ values = setNames(
139+ c(" blue" , " blue" , " blue" ),
140+ c(
141+ highest_mean_besttree_bootstrap_support ,
142+ highest_mean_consensustree_bootstrap_support ,
143+ lowest_mean_mltrees_cluster_info_dist
144+ )
145+ )
70146 ) +
71147 stat_summary(
72148 fun.data = " mean_se" ,
@@ -76,7 +152,7 @@ support_across_missingness <- ggplot(
76152 cols = vars(factor (max_missing )),
77153 rows = vars(factor (value_type ))
78154 ) +
79- theme_bw() +
155+ theme_bw() +
80156 theme(
81157 # text = element_text(size=rel(5.5)),
82158 # x-axis facet labels do not seem to inherit from text above
0 commit comments