Learn R Programming

⚠️There's a newer version (0.9.6) of this package.Take me there.

ggrepel (version 0.4)

Repulsive Text and Label Geoms for 'ggplot2'

Description

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.

Copy Link

Version

Install

install.packages('ggrepel')

Monthly Downloads

288,470

Version

0.4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Kamil Slowikowski

Last Published

January 12th, 2016

Functions in ggrepel (0.4)

makeContent.textrepelgrob

grid::makeContent function for textRepelGrob.
centroid

Get the coordinates of the center of a box.
repel_boxes

Adjust the layout of a list of potentially overlapping boxes.
spring_force

Compute the spring force upon point a from point b.
put_within_bounds

Move a box into the area specificied by x limits and y limits.
repel_force

Compute the repulsion force upon point a from point b.
overlaps

Test if a box overlaps another box.
euclid

Euclidean distance between two numeric vectors.
makeContent.labelrepelgrob

grid::makeContent function for labelRepelGrob.
ggrepel

ggrepel
GeomLabelRepel

GeomLabelRepel
point_within_box

Test if a point is within the boundaries of a box.
intersect_line_rectangle

Find the intersections between a line and a rectangle.
geom_label_repel

Repulsive textual annotations.