How do I create a plot with axis breaks using ggplot2 in R?

106 Views Asked by At

I need to plot some data with a few outliers so I want to use a axis break in y axis to show all values. However, I tried many different R packages and none of them gave me a good solution. I tried gg.gap and ggbreak. I was able to use ggbreak to create individual plots with axis breaks but when I combine them using ggarrange, the axis breaks disappeared. Another challenge is that ggbreak tends to mess up the y axis limit so that I no longer can add annotations outside of the plot area. Anyone has good suggestions for this issue? Thank you.

tried gg.gap and ggbreak.

0

There are 0 best solutions below