lokheart
lokheart

Reputation: 24665

how to change the width of the gaps between the panels in facet in ggplot2?

as title, I have having quite a lot of panels when generating a chart by ggplot, and I think the gap is a bit too wide, can I adjust it?

Thanks!

Upvotes: 2

Views: 756

Answers (1)

apeescape
apeescape

Reputation: 1099

I believe this is what you want.

+ opts(panel.margin = unit(0, "inches"))

Upvotes: 4

Related Questions