ggrepel

:round_pushpin: Repel overlapping text labels away from each other in your ggplot2 figures.

https://github.com/slowkow/ggrepel

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 22 committers (13.6%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

cran ggplot2 rstats text visualization

Keywords from Contributors

visualisation tidy-data documentation-tool genomics date-time repl parsing easy-to-use setup shiny
Last synced: 6 months ago · JSON representation

Repository

:round_pushpin: Repel overlapping text labels away from each other in your ggplot2 figures.

Basic Info
Statistics
  • Stars: 1,236
  • Watchers: 24
  • Forks: 96
  • Open Issues: 38
  • Releases: 0
Topics
cran ggplot2 rstats text visualization
Created about 10 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog Funding License

README.md

ggrepel

Build Status CRAN_Status_Badge CRAN_Downloads_Badge

Overview

ggrepel provides geoms for ggplot2 to repel overlapping text labels:

  • geom_text_repel()
  • geom_label_repel()

Text labels repel away from each other, away from data points, and away from edges of the plotting area.

r library(ggrepel) ggplot(mtcars, aes(wt, mpg, label = rownames(mtcars))) + geom_text_repel() + geom_point(color = 'red') + theme_classic(base_size = 16)

Installation

```r

The easiest way to get ggrepel is to install it from CRAN:

install.packages("ggrepel")

Or get the the development version from GitHub:

install.packages("devtools")

devtools::install_github("slowkow/ggrepel") ```

Usage

See the examples page to learn more about how to use ggrepel in your project.

Examples

Click one of the images below to go to see the code example:

Hide some of the labels Always show all labels, even when they have too many overlaps Do not repel labels from data points Do not repel labels from plot (panel) edges Expand the scale to make room for labels Always (or never) draw line segments Make curved line segments or arrows Repel labels from data points with different
sizes Limit labels to a specific area Remove “a” from the legend Align labels on the top or bottom edge Align labels on the left or right edge Using ggrepel with stat_summary() Justify multiple lines of text with hjust Label jittered points Nudge labels in different directions with ggpp Label sf objects Shadows (or glow) under text labels Verbose timing information Word cloud Polar coordinates Unicode characters (Japanese) Mathematical expressions

Contributing

Please submit an issue to report bugs or ask questions.

Please contribute bug fixes or new features with a pull request to this repository.

Owner

  • Name: Kamil Slowikowski
  • Login: slowkow
  • Kind: user
  • Company: Mass General Brigham

Computational biologist. Using transcriptomics to learn about inflammation and cancer.

GitHub Events

Total
  • Issues event: 8
  • Watch event: 26
  • Issue comment event: 31
  • Push event: 2
  • Pull request review event: 1
  • Pull request review comment event: 2
  • Pull request event: 5
  • Fork event: 1
  • Create event: 1
Last Year
  • Issues event: 8
  • Watch event: 26
  • Issue comment event: 31
  • Push event: 2
  • Pull request review event: 1
  • Pull request review comment event: 2
  • Pull request event: 5
  • Fork event: 1
  • Create event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 472
  • Total Committers: 22
  • Avg Commits per committer: 21.455
  • Development Distribution Score (DDS): 0.189
Past Year
  • Commits: 7
  • Committers: 1
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Kamil Slowikowski k****i@g****m 383
Pedro J. Aphalo p****o@h****i 19
Sean Hughes s****s@u****u 10
Saulius Lukauskas l****s@g****m 7
krassowski k****l@g****m 7
Jean-Olivier Irisson i****n@n****g 6
kiendang k****d@p****e 6
Michael Chirico c****m@g****m 6
AliciaSchep a****p@g****m 5
Alicia a****p@s****u 3
Malcolm Barrett m****t@g****m 3
Robrecht Cannoodt r****d@g****m 3
olivroy 5****y 3
Pierre Gramme p****e@d****m 2
Michael Chirico m****o@g****m 2
Amir Masoud Abdol a****l@i****m 1
Christophe Dervieux c****x@g****m 1
Fran Barton f****n@a****t 1
Owen Jones o****s@m****m 1
Ryan C. Thompson r****t@t****g 1
Zhian Kamvar k****z@s****u 1
yutannihilation y****i@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 114
  • Total pull requests: 24
  • Average time to close issues: 5 months
  • Average time to close pull requests: 3 months
  • Total issue authors: 100
  • Total pull request authors: 11
  • Average comments per issue: 5.66
  • Average comments per pull request: 4.13
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 5
  • Pull requests: 4
  • Average time to close issues: 28 days
  • Average time to close pull requests: 2 months
  • Issue authors: 5
  • Pull request authors: 2
  • Average comments per issue: 2.4
  • Average comments per pull request: 3.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aphalo (6)
  • slowkow (2)
  • willizhang (2)
  • hadley (2)
  • DasHammett (2)
  • fabeit (2)
  • z3tt (2)
  • MichaelChirico (2)
  • kendonB (2)
  • ghost (2)
  • EugenioGrant (1)
  • camille-s (1)
  • yutannihilation (1)
  • davidchall (1)
  • beanumber (1)
Pull Request Authors
  • teunbrand (8)
  • aphalo (6)
  • olivroy (5)
  • MichaelChirico (3)
  • jpquast (2)
  • krassowski (1)
  • ripkrizbi (1)
  • PursuitOfDataScience (1)
  • francisbarton (1)
  • owenjonesuob (1)
  • rcannood (1)
Top Labels
Issue Labels
enhancement (15) bug (10) help wanted (9) question (8) wontfix (1) duplicate (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 260,895 last-month
  • Total docker downloads: 390,189
  • Total dependent packages: 385
    (may contain duplicates)
  • Total dependent repositories: 1,453
    (may contain duplicates)
  • Total versions: 24
  • Total maintainers: 1
cran.r-project.org: ggrepel

Automatically Position Non-Overlapping Text Labels with 'ggplot2'

  • Versions: 16
  • Dependent Packages: 350
  • Dependent Repositories: 1,419
  • Downloads: 260,895 Last month
  • Docker Downloads: 390,189
Rankings
Stargazers count: 0.2%
Dependent repos count: 0.3%
Dependent packages count: 0.3%
Downloads: 0.6%
Forks count: 0.7%
Average: 3.2%
Docker downloads count: 17.3%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: r-ggrepel
  • Versions: 8
  • Dependent Packages: 35
  • Dependent Repositories: 34
Rankings
Dependent packages count: 1.9%
Dependent repos count: 6.3%
Average: 9.9%
Stargazers count: 12.1%
Forks count: 19.1%
Last synced: 6 months ago

Dependencies

.github/workflows/check-standard.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
DESCRIPTION cran
  • R >= 3.0.0 depends
  • ggplot2 >= 2.2.0 depends
  • Rcpp * imports
  • grid * imports
  • rlang >= 0.3.0 imports
  • scales >= 0.5.0 imports
  • withr >= 2.5.0 imports
  • devtools * suggests
  • dplyr * suggests
  • ggbeeswarm * suggests
  • gridExtra * suggests
  • knitr * suggests
  • magrittr * suggests
  • prettydoc * suggests
  • readr * suggests
  • rmarkdown * suggests
  • stringr * suggests
  • svglite * suggests
  • testthat * suggests
  • vdiffr * suggests
  • withr * suggests