ggrepel v0.6.5

0

Monthly downloads

0th

Percentile

Repulsive Text and Label Geoms for 'ggplot2'

Provides text and label geoms for 'ggplot2' that help to avoid overlapping text labels. Labels repel away from each other and away from the data points.

Readme

ggrepel

Build Status CRAN_Status_Badge CRAN_Downloads_Badge

ggrepel provides geoms for ggplot2 to repel overlapping text labels.

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

geom_text_repel

Usage

See the vignette for more usage examples.

Also, look at the help pages:

?geom_text_repel
?geom_label_repel

Installation

Install the latest stable release from CRAN:

install.packages("ggrepel")

Alternatively, install the latest development version from github:

install.packages("devtools")
devtools::install_github("slowkow/ggrepel")

Or install a tagged version:

devtools::install_github("slowkow/ggrepel@0.6.2")

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.

directlabels

This package is an attempt to make direct labeling a reality in everyday statistical practice by making available a body of useful functions that make direct labeling of common plots easy to do with high-level plotting systems such as lattice and ggplot2. The main function that the package provides is direct.label(p), which takes a lattice or ggplot2 plot p and adds direct labels.

wordcloud

Pretty word clouds.

The wordcloud package implements a spiraling algorithm to prevent text labels from overlapping each other.

FField

Force field simulation of interaction of set of points. Very useful for placing text labels on graphs, such as scatterplots.

I found that functions in the FField package were not ideal for repelling overlapping rectangles, so I wrote my own.

See this gist for examples of how to use the wordcloud and FField packages with ggplot2.

Functions in ggrepel

Name Description
ggrepel ggrepel
geom_label_repel Repulsive textual annotations.
GeomLabelRepel GeomLabelRepel
No Results!

Last month downloads

Details

VignetteBuilder knitr
License GPL-3 | file LICENSE
URL http://github.com/slowkow/ggrepel
BugReports http://github.com/slowkow/ggrepel/issues
RoxygenNote 5.0.1
LinkingTo Rcpp
NeedsCompilation yes
Packaged 2016-11-23 19:15:14 UTC; slowikow
Repository CRAN
Date/Publication 2016-11-24 07:47:54

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/ggrepel)](http://www.rdocumentation.org/packages/ggrepel)