fix: update snapshot, bump R minimum to 4.1, modernize GHA workflows (#152)
- fix: update snapshot, bump R minimum to 4.1, modernize GHA workflows
- Update geom_signific_strict snapshot to match new ggplot2 geom_bar layer data structure (added ‘order’ and ‘width’ columns; reordered ‘colour’ before ‘linewidth’)
- Bump R minimum version from 3.6.0 to 4.1.0 in DESCRIPTION, aligning with ggplot2 >= 3.5.0’s own requirement
- Remove R 3.6 and R 4.0 from the R-CMD-check matrix (below new minimum)
- Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true to all workflow envs to silence Node.js 20 deprecation warnings ahead of the June 2026 deadline
- Switch covr source from r-lib/covr (GitHub dev) to any::covr (CRAN) in test-coverage workflow for better stability
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- fix: remove Twitter/X entries from author comments in DESCRIPTION
R CMD CHECK now warns on unrecognized person() comment fields. Twitter is no longer a supported field; removing the entries eliminates those warnings.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- docs: regenerate Rd files with roxygen2 7.3.3
RoxygenNote bumped from 7.3.1 to 7.3.3 and Rd files regenerated to reflect the removal of Twitter author comment fields.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- ci: rewrite R-CMD-check matrix to use oldrel-N notation
- Replace hardcoded R versions (4.1, 4.2, 4.3) with oldrel-1 through oldrel-4, mirroring r-lib/lintr; versions now auto-track as new R releases land without needing manual workflow updates
- Remove redundant Windows devel/oldrel entries (covered by ubuntu)
- Add concurrency group to cancel stale runs on new pushes
- Add http-user-agent: release for devel to use stable package binaries
- Upgrade actions/checkout v4 -> v6 (Node.js 24 native; drops need for FORCE_JAVASCRIPT_ACTIONS_TO_NODE24)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- fix: address PR review comments
- Replace checkout@v6 with checkout@v4 in check-full.yaml for consistency
- Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true to check-full.yaml env
- Replace oldrel-4 with pinned ‘4.1’ to avoid drifting below minimum R version
- Fix show.legend docs: remove inaccurate levels-related statements
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- test: skip snapshot tests on R-devel
Graphics engine changes in R-devel can cause snapshot mismatches unrelated to the package logic. Skip all snapshot tests (expect_snapshot and vdiffr::expect_doppelganger) when running on R-devel.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
ggsignif: Significance Brackets for ‘ggplot2’
Introduction
This package provides an easy way to indicate if two groups are significantly different. Commonly this is shown by a bar on top connecting the groups of interest which itself is annotated with the level of significance (NS, *, **, ***). The package provides a single layer (
geom_signif) that takes the groups for comparison and the test (t.test, wilcox etc.) and adds the annotation to the plot.Citation
If you wish to cite this package in a publication, you can run the following command in your R console:
Example
You can first install this package from
CRAN:Or get the latest development version:
Plot significance
Control the direction (either
xory) viaorientationCompatible with coord_flip
Setting the precise location
This is important if you use
position="dodge", because in that case I cannot calculate the correct position of the bars automatically.ggsignifis compatible with facetting (facet_wraporfacet_grid). The significance label is calculated for each facet where the axis labels listed incomparisonsoccur. Note thatggsigniffails to calculate the significance if the data is grouped globally (e.g., by settingcolor,fill, orgroupinggplot(aes(...))). It is fine to group the data per geom (e.g., set the fill withingeom_boxplot(aes(fill = ...))).Advanced Example
Sometimes one needs to have a very fine tuned ability to set the location of the the significance bars in combination with
facet_wraporfacet_grid. In those cases it you can set the flagmanual=TRUEand provide the annotations as a data.frame:You can ignore the warning about the missing aesthetics.
For further details, see: https://const-ae.github.io/ggsignif/articles/intro.html
Maintenance
This package is provided as is and we currently don’t have any plans and the capacity to add any new features to it. If there is nonetheless a feature which you would like to see in the package, you are always welcome to submit pull request, which we will try to address as soon as possible.
Code of Conduct
Please note that the
ggsignifproject is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.