Skip to content

Commit 3fb9637

Browse files
committed
Replace geom_errorbarh with geom_errorbar
1 parent d4a900a commit 3fb9637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/singlesnp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mr_forest_plot <- function(singlesnp_results, exponentiate=FALSE)
131131
ggplot2::ggplot(d, ggplot2::aes(y=SNP, x=b)) +
132132
ggplot2::geom_vline(xintercept=xint, linetype="dotted") +
133133
# ggplot2::geom_errorbarh(ggplot2::aes(xmin=pmax(lo, min(d$b, na.rm=T)), xmax=pmin(up, max(d$b, na.rm=T)), size=as.factor(tot), colour=as.factor(tot)), height=0) +
134-
ggplot2::geom_errorbarh(ggplot2::aes(xmin=lo, xmax=up, linewidth=as.factor(tot), colour=as.factor(tot)), width=0) +
134+
ggplot2::geom_errorbar(ggplot2::aes(xmin=lo, xmax=up, linewidth=as.factor(tot), colour=as.factor(tot)), width=0, orientation = "y") +
135135
ggplot2::geom_point(ggplot2::aes(colour=as.factor(tot))) +
136136
ggplot2::geom_hline(ggplot2::aes(yintercept = which(levels(SNP) %in% "")), colour="grey") +
137137
ggplot2::scale_colour_manual(values=c("black", "red")) +

0 commit comments

Comments
 (0)