Questions tagged [ggbreak]
10 questions
1
vote
2 answers
ggbreak shifts axis labelling
When using ggbreak together with ggplot2, the axis labels are shifted. When plotting the graph without inserting a break, the x-axis label is centered on the axis and the y-axis label is close to the y-axis. After introducing the break, the x-axis…

Till
- 11
- 1
1
vote
0 answers
How to add a mark in an axis break using ggbreak?
I'd like to add a mark to notify the break in my axis as in the graph below.
By using the dataset iris, here is the code.
p <-
ggplot(iris, aes(x=Species, y=Sepal.Length)) +
geom_boxplot() +
theme_classic() +
theme(axis.text.y.right =…

IsoE
- 11
- 2
1
vote
0 answers
gridExtra::marrangegrob() disregards ggbreak::scale_y_break()
I'm creating multiple ggplot2 plots with a "broken" Y axis using ggbreak::scale_y_break, and exporting these to a single PDF document using gridExtra::marrangegrob() and ggsave(). It turns out that when saving, the broken Y axis is in fact ignored.…

BestGirl
- 319
- 1
- 13
1
vote
0 answers
y-axis breaks with ggplot2 for a manhattan plot
I have a manhattan plot of genetic information:
It was generated using the qqman package https://cran.r-project.org/web/packages/qqman/vignettes/qqman.html) in R which takes a dataframe of P-values, chromosome position and a gene position (for any…

tacrolimus
- 500
- 2
- 12
0
votes
1 answer
cannot remove "y.position" from y-axis title when using ggpubr and ggbreak together
not enough reputation to post images in a question, here is the plot
Plot was generated by
library(ggplot2)
library(ggbreak)
library(ggpubr)
df <- ToothGrowth
bxp <- ggboxplot(df, x= "dose", y = "len", fill = "dose")
stat.test1 <-…

ZhuYi Wang
- 3
- 2
0
votes
0 answers
Duplicated labels from geom_text_repel when splitting y-axis with ggbreak in R
I have a scatterplot of a few thousand points faceted by a factor using facet_wrap. I have successfully split the y-axis using scale_y_break from the ggbreak package and now I would like to label a selection of my data points (named in a vector,…
0
votes
0 answers
How do I create a plot with axis breaks using ggplot2 in R?
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…

Jason
- 21
- 1
0
votes
1 answer
How to keep the axis configuration on a plot made with ggplot with split axes using ggbreak?
When I split the x-axis using ggbreak, the plot is displayed correctly. However, if I specify the scale of the y-axis, the y-axis is not displayed as it would be without the specification. How can I solve this?
library(ggplot2)
library(ggbreak)
DF…

Daniel Valencia C.
- 2,159
- 2
- 19
- 38
0
votes
0 answers
Graph of zero point clumped together after applying ggbreak() in ggplot2
I dont have data between 1 and 11 hrs (inyour text x axis) so I want to delete this portion from my graph.
How can I put zero values in each group instead of being clumped together?
I tried to plot the graph as follows:
plot <- ggplot(bgse_lmean,…
0
votes
1 answer
plot_grid function removes axis breaks from ggbreak in plots
I'm struggling with a problem:
I created two volcano plots in ggplot2, but due to the fact that I had one outlier point in both plot, I need to add y axis break for better visualization.
The problem arises when I WANT TO plot both in the same page…

jonny jeep
- 383
- 3
- 12