ggrepel is an R package that provides “smart” repulsion for text and label geoms in ggplot2. When placing text labels on a plot (e.g. labeling points), the labels can often overlap; ggrepel ensures labels don’t overlap (or overlap less) by repelling labels / pushing them away, adding connecting lines or nudges, etc. It improves the readability of plots, especially when many labels are present. Support for point and segment geoms (so labels can be connected by lines when moved). Supports both plotting of labels inside or outside plot area, with trimming/clipping etc.

Features

  • Automatic adjustment of label positions to avoid overlapping text labels in ggplot2 plots
  • Support for point and segment geoms (so labels can be connected by lines when moved)
  • Customizable parameters: force, direction, segment colour/style, maximum/minimum distance etcetera
  • Works with many types of plot geoms: scatter, bar, line plots, map plots etc.
  • Supports both plotting of labels inside or outside plot area, with trimming / clipping etc.
  • Good default behaviour plus flexibility: users can tweak aesthetics to suit their data / presentation needs

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow ggrepel

ggrepel Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ggrepel!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

R

Related Categories

R Data Visualization Software

Registered

2025-09-12