ggbreak
ggbreak copied to clipboard
Extra lines created outside of plot after using scale_y_break
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
After break
Russell
Hi,
I'm having the same problem in generating figure.
Jing
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))