on-internet
← Community

Color of observations/points and fill of intervals

Stack Overflow ·

I need to modify the plot code below so that: The colors of the points in the legend are exactly the same as on the plot The fill of the intervals in the legend is exactly the same as that on the plot The observations and intervals are well aligned. rs758427_auc_gei_plot <- ggplot(pgxd,aes(x=igfr_mlmin,col=rs758427,fill=rs758427)) + geom_ribbon(aes(ymin=exp(lwr),ymax=exp(upr)),alpha=0.2) + geom_point(aes(y=auc)) + geom_line(aes(y=exp(fit)))+ scale_color_manual(values = pal_okabe_ito,name = "95% CI") + ylab("AUC") + xlab("GFRi") + theme_pubr() + theme(legend.position="bottom") + NULL rs758427_a

Comments

Sign in or sign up to comment and upvote.

No comments yet.