Skip to content

Commit 703f87a

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/scatterplot.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@ mr_scatter_plot <- function(mr_results, dat) {
118118
colour = "grey",
119119
width = 0
120120
) +
121-
ggplot2::geom_errorbarh(
121+
ggplot2::geom_errorbar(
122122
ggplot2::aes(
123123
xmin = beta.exposure - se.exposure,
124124
xmax = beta.exposure + se.exposure
125125
),
126126
colour = "grey",
127-
width = 0
127+
width = 0,
128+
orientation = "y"
128129
) +
129130
ggplot2::geom_point() +
130131
ggplot2::geom_abline(

0 commit comments

Comments
 (0)