File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 285
285
# To create ellipsis shape and avoid overlapping between both of them,
286
286
# set the height to 80% of the SE (minimum scaled in x-axis or y-axis range)
287
287
width <- (100 - start_binary_endpoint ) * min(binary_meta $ se ) / 100
288
- y_range <- (( max(actv_y , ctrl_y ) + 10 ) * min( binary_meta $ se ) / 100 ) * 0.6
288
+ y_range <- (max(actv_y , ctrl_y ) + 10 ) * ( width / 100 )
289
289
y_height <- min(c(0.4 * abs(actv_y - ctrl_y ), 0.8 * min(width , y_range )))
290
290
291
291
# Create ellipsis centered around proportion estimate (x0) as well as
Original file line number Diff line number Diff line change 211
211
plot <- plot +
212
212
ggplot2 :: geom_vline(xintercept =
213
213
seq(0.5 , length(levels(wins_forest $ GROUP )) + 1.5 ,
214
- 1 ),
214
+ 1 ),
215
215
linetype = 2 , linewidth = 0.3 , color = " darkgray" ) +
216
216
scale_color_manual(values = c(" black" , " grey50" )) +
217
217
scale_fill_manual(values = c(" black" , " grey50" )) +
218
218
ylab(" Win Odds / Win Ratio" ) +
219
219
theme_bw() +
220
220
theme(legend.position = " bottom" ,
221
221
legend.title = element_blank(),
222
- panel.grid.major.y = ggplot2 :: element_blank(),
223
- panel.grid.minor.y = ggplot2 :: element_blank())
222
+ panel.grid.major.y = ggplot2 :: element_blank(),
223
+ panel.grid.minor.y = ggplot2 :: element_blank())
224
224
}
225
225
226
226
return (plot )
You can’t perform that action at this time.
0 commit comments