Skip to content

Commit

Permalink
updating deprecated options in ggplot
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Feb 23, 2024
1 parent 1f6b03f commit b3ffa35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/leaveoneout.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ mr_leaveoneout_plot <- function(leaveoneout_results)
ggplot2::ggplot(d, ggplot2::aes(y=SNP, x=b)) +
ggplot2::geom_vline(xintercept=0, linetype="dotted") +
# 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) +
ggplot2::geom_errorbarh(ggplot2::aes(xmin=lo, xmax=up, size=as.factor(tot), colour=as.factor(tot)), height=0) +
ggplot2::geom_errorbarh(ggplot2::aes(xmin=lo, xmax=up, linewidth=as.factor(tot), colour=as.factor(tot)), height=0) +
ggplot2::geom_point(ggplot2::aes(colour=as.factor(tot))) +
ggplot2::geom_hline(ggplot2::aes(yintercept = which(levels(SNP) %in% "")), colour="grey") +
ggplot2::scale_colour_manual(values=c("black", "red")) +
Expand Down

0 comments on commit b3ffa35

Please sign in to comment.