I am trying to make a overlaid plot, having 2 y-axes. I want one plot to be a bar plot, the other to be a line plot. I know how to do this in ggplot2 but I would like to learn how to do this using the ggpubr package. I'd be grateful for any insight anyone can provide! I know is is an elementary question, so thank you for bearing with me!

Thanks! I am trying to do this using ggpubr rather than ggplot2 though. I know ggpubr is based off ggplot2, so the solution should be somewhat similar, but I haven't been able to figure it out. That was a very clear and helpful link though! Will definitely share with my fellow grad students.