R ggplot Align Y-Axis on multiple graphs
0
0
Entering edit mode
6.8 years ago
jjrin ▴ 40

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 • 10k views
ADD COMMENT
1
Entering edit mode

Just add ylim() to each:

ggplot(MyData, aes(...)) + ... + ylim(0, 20)
ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2331 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6