Skip to content

ggbreak

0.2.2Package record

Set Axis Break for 'ggplot2'

1packages dependsuggested by 1
101.7Kdownloads / year
88.2%test coverage
13/13flavors OK

Overview

About

An implementation of scale functions for setting axis breaks of a 'gg' plot (S Xu (2021) doi:10.3389/fgene.2021.774846).

Changes in 0.2.2
  • the axis title of a broken plot is now drawn exactly once, whatever it comes from; the #85 entry of 0.2.0 was about the defect #53 fixed and assumed a title set with labs(), and the report came back for a title given as the name of a position scale -- scale_x_continuous("test") -- where five things went wrong together. The labels of the figure were read off ggplot_build(plot)$plot$labels, which only holds what labs() set plus the aesthetic defaults, so a plot whose scale is named "test" reported its title as "x" and the copy hoisted above a bottom legend carried the wrong text; ggplot2::get_labs() is used now, which returns the completed labels. A window blanked its title with guides(x = guide_axis(title = NULL)), and that does not beat the name of a scale, so scale_wrap() and the cut scales printed the title once per window; the theme element is blanked instead, and only on the windows, so the figure still draws it. check_axis_title() added the title to the outer ggplot a second time as a guide axis, whose row sits *below* the collected legend, which is why a scale-named title came out twice, once above the legend and once below it; only the secondary-axis title is left there, because labs() cannot set it. grid.draw.ggwrap() wrote the hoisted label back with totallabs$x <- NULL, and assigning NULL drops the element rather than clearing it, so a wrap drew a stray "x" under its legend. And the title is moved out of the panel by align_assembled_figure(), so a broken plot with a legend at the bottom keeps it when patchwork or cowplot take it through ggplotGrob() instead of being handed over titleless (2026-09-22, Tue, #85)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 10.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • WARNING12 OK, 1 WARNING2026-06-07
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.2
README· In the repository, left out of the releaseVignettesYes · 1 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 0.2.2Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
4 (1 internal)includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

101.7K
CRAN downloads in the past year
Rank #1,309 · ~279/day · ~8.5K/mo
Daily download trend is not available in this view yet.
8K30 days
22.8K90 days
101.7K1 year
Compare downloads with other packages →
Also on815 r2u3 autocran3.5K conda_forge

Repository

148Stars
7Forks
2Open issues
0Open PRs
0Releases
204Commits
6Commit identities
axis-breakwrap-plotcut-plotggbreakggplot2
204 commits · Last activity 2026-09-22 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
921
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-02 · 1412026-09-17 · 148
PracticesBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/yulab-smu/ggbreak on 2026-10-21.

Docs source (1)
README.Rmd
Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing ggbreak adds 34 packages (15 with compiled code, 22 MB of source tarballs). Heaviest: ggplot2 6.0 MB, patchwork 3.2 MB, isoband 1.5 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer since 0.0.2 (2021), Copyright holder
Releases (17)

Pick two releases to compare their code metrics.

Show 8 earlier eventsHide 8 earlier events

Package metadata

First published
2021-05-13
Total releases
17 / 5 yrs
License
Artistic-2.0 OSI
Download size
842 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("ggbreak")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.3389/fgene.2021.774846.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggbreak version 0.2.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy