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
Categories
Data VisualizationLicense
GNU General Public License version 3.0 (GPLv3)Follow ggrepel
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of ggrepel!