Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra lines created outside of plot after using scale_y_break #64

Open
northcoastrat opened this issue Dec 5, 2023 · 2 comments
Open

Comments

@northcoastrat
Copy link

Hello,

I love how easy this package is to use. However, after I break my axis using scale_y_break, I get some lines that I cannot figure out how to remove. These get drawn between the axis labels and the graph. Do you know how to remove them?

Before break
image

After break
image

Russell

@wangjing8726
Copy link

wangjing8726 commented Mar 7, 2024

Hi,

I'm having the same problem in generating figure.

Jing

@jdblischak
Copy link

Below is a reproducible example. I confirmed I observed the unwanted extra lines with {ggbreak} 0.1.2, R 4.3.3, and {ggplot2} 3.4.0, 3.4.2, and 3.5.1.

library("ggbreak")
packageVersion("ggbreak")
## [1] ‘0.1.2’
library("ggplot2")
packageVersion("ggplot2")
## [1] ‘3.4.0’

data("ToothGrowth")
ggplot(ToothGrowth) +
  aes(x = supp, y = len) +
  geom_bar(stat = "summary", fun = "mean") +
  scale_y_break(breaks = c(5, 15))

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants