const-ae / ggsignif

Easily add significance brackets to your ggplots
https://const-ae.github.io/ggsignif/
GNU General Public License v3.0
593 stars 43 forks source link

text is hided when it use facet_grid #1

Closed metajinomics closed 7 years ago

metajinomics commented 7 years ago

Hi, Thank you for making a great library. I like your ggsignif very much. But I found the text is half covered when I use facet_grid. (See attachment). Is there any way to fix it?

Rplot.pdf

const-ae commented 7 years ago

I am happy to hear that you find the package useful.

You are right, I should look into this, if there is a better way to make sure that the full text is always displayed.

Until then I would recommend to set the displayed range manually: ... + ylim(c(NA, 1900))

metajinomics commented 7 years ago

Thank you. It works!

SallyLightfoot commented 7 years ago

I'm having the same issue, but since I need to use a "free_y" scale on my data, changing the ylim is not working either. Other workarounds?

const-ae commented 7 years ago

There is no particular solution that is supported by my package, but there is a general workaround for ggplot2 posted on stackoverflow.

You just define the dummy data.frame with the range you want to the plot to cover.