This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R ggplot Align Y-Axis on multiple graphs

Hello I used ggarrange to create this plot, and I would like to align the y axis so that the y axis is the same throughout all graphs instead of being off center. Thank you.

Misaligned y axis

ggarrange ggplot2 r

Just add ylim() to each:

ggplot(MyData, aes(...)) + ... + ylim(0, 20)

Oh my you're right, I use the same username there and I thought I was posting there. Won't do that again.

These types of posts make it through here a lot of the time, as they are broadly related to the analysis of biological data.

0 answers

No answers yet.

Log in to answer this question.