@@ -38,7 +38,8 @@ summ2 <- summ %>% filter(method %in% c("reMA", "TF", "PET.lm", "PEESE.lm", "PETP
3838
3939# prepare extra data.frame for the number of successful computation out of 1000 simulations
4040summ2 $ nPos <- ifelse(summ2 $ delta == 0 , - 0.05 , 1.3 )
41- summ2 $ just <- ifelse(summ2 $ delta == 0 , 1.8 , - 0.4 )
41+ summ2 $ just <- ifelse(summ2 $ delta == 0 , 1.8 , - 0.8 )
42+ summ2 $ symbolCol <- ifelse(summ2 $ delta == 0 , " 0" , " 1" )
4243summ2 $ n.validEstimates.label <- as.character(summ2 $ n.validEstimates )
4344summ2 $ n.validEstimates.label [summ2 $ n.validEstimates.label == " 1000" ] <- " "
4445
@@ -57,15 +58,15 @@ buildFacet <- function(dat, title) {
5758 geom_pointrange(position = position_dodge(width = .7 ), size = 0.4 ) +
5859 coord_flip(ylim = YLIM ) +
5960 # geom_text(aes(x=factor(k), y=nPos, label=n.validEstimates.label, hjust=just, group=qrp.label), position=position_dodge(width=0.7), size=3, vjust=0.5) +
60- geom_text(aes(x = factor (k ), y = nPos2 , label = n.validEstimates.symbol , hjust = just , group = qrp.label ) , position = position_dodge(width = 0.7 ), size = 3 , vjust = 0.9 , color = " steelblue3 " ) +
61+ geom_text(aes(x = factor (k ), y = nPos2 , label = n.validEstimates.symbol , hjust = just , group = qrp.label , color = factor ( delta )) , position = position_dodge(width = 0.7 ), size = 3 , vjust = 0.9 ) +
6162
6263 # facet_grid(tau.label~method,labeller = label_bquote(cols = alpha ^ .(vs),rows = tau = .(tau))) +
6364 facet_grid(tau ~ method ,labeller = label_bquote(rows = tau == .(tau ))) +
6465
6566 theme_metashowdown +
6667 scale_y_continuous(breaks = c(- .5 ,.0 ,.5 ,1 )) +
6768 scale_shape_manual(values = c(21 ,22 ,24 )) +
68- scale_color_manual(values = c(" steelblue3" , " black" )) +
69+ scale_color_manual(values = c(" steelblue3" , " black" , " steelblue3 " , " black " )) +
6970 scale_fill_manual(values = c(" skyblue" , " black" )) +
7071 ylab(" Estimated effect size" ) +
7172 xlab(expression(italic(" k" ))) +
0 commit comments