Reputation: 41
I need to add a Y axis break to a plot I made in ggplot. Is it possible to use the gap.barplot function in plotrix in a graph in ggplot? When I try, it cancels everything I did in ggplot and plots just the gap.barplot bit.
Thank you
Barbara
Upvotes: 3
Views: 2463
Reputation: 356
Unfortunately NO. They work on two different "worlds". I've been trying a lot but it seems (just like @Mark Peterson wrote) that doing this in ggplot is nearly impossible on purpose
You should look into these questions and answers which are very similiar: Using ggplot2, can I insert a break in the axis? Broken barplot using R/ggplot2
Upvotes: 1