Voltar ao rankingggrepel
:round_pushpin: Repel overlapping text labels away from each other in your ggplot2 figures.
ggplot2cranvisualizationtextrstats
Métricas principais
Crescimento de estrelas
Estrelas
1.3k
Forks
96
Crescimento semanal
—
Issues
25
5001k
jan. de 2016out. de 2017jul. de 2019abr. de 2021jan. de 2023out. de 2024jul. de 2026
README
ggrepel 
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.
Examples
Click one of the images below to go to see the code example:
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.
Repositórios relacionados






















