slowkow/ggrepel


round_pushpin Repel overlapping text labels away from each other.

https://ggrepel.slowkow.com

License: GPL-3.0

Language: R

Keywords: cran, ggplot2, rstats, text, visualization


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.

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

Installation

# 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.

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.

Project Statistics

Sourcerank 15
Repository Size 20.8 MB
Stars 705
Forks 76
Watchers 29
Open issues 10
Dependencies 16
Contributors 13
Tags 31
Created
Last updated
Last pushed

Top Contributors See all

Kamil Slowikowski Sean Hughes Saulius Lukauskas Jean-Olivier Irisson Dang Trung Kien Alicia Schep Malcolm Barrett Robrecht Cannoodt Hiroaki Yutani Zhian N. Kamvar Ryan C. Thompson Christophe Dervieux Amir Masoud Abdol

Packages Referencing this Repo

ggrepel
Automatically Position Non-Overlapping Text Labels with 'ggplot2'
Latest release 0.8.2 - Updated - 705 stars

Recent Tags See all

0.8.0 May 09, 2018
0.7.3 February 09, 2018
0.7.2 December 19, 2017
0.7.1 November 19, 2017
0.7.0 September 28, 2017
0.6.12 July 17, 2017
0.6.11 July 08, 2017
0.6.10 May 12, 2017
0.6.9 March 07, 2017
0.6.8 February 12, 2017
0.6.7 January 09, 2017
0.6.6 November 29, 2016
0.6.5 November 23, 2016
0.6.4 November 08, 2016
0.6.3 October 14, 2016

Interesting Forks See all

zachcp/ggrepel
round_pushpin Repel overlapping text labels away from each other.
R - Last pushed - 2 stars

Something wrong with this page? Make a suggestion

Last synced: 2020-03-08 19:27:33 UTC

Login to resync this repository