• Stars
    star
    1,169
  • Rank 38,057 (Top 0.8 %)
  • Language
    R
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📍 Repel overlapping text labels away from each other in your ggplot2 figures.

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.

Examples

Click one of the images below to go to see the code example:

Hide some of the labels Always show all labels, even when they have too many overlaps Do not repel labels from data points Do not repel labels from plot (panel) edges Expand the scale to make room for labels Always (or never) draw line segments Make curved line segments or arrows Repel labels from data points with different
sizes Limit labels to a specific area Remove “a” from the legend Align labels on the top or bottom edge Align labels on the left or right edge Using ggrepel with stat_summary() Justify multiple lines of text with hjust Label jittered points Nudge labels in different directions with ggpp Label sf objects Shadows (or glow) under text labels Verbose timing information Word cloud Polar coordinates Unicode characters (Japanese) Mathematical expressions

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.

More Repositories

1

awesome-vdj

📚 Tools and databases for analyzing HLA and VDJ genes.
167
star
2

harmonypy

🎼 Integrate multiple high-dimensional datasets with fuzzy k-means and locally linear adjustments.
Python
161
star
3

snakefiles

🐍 Snakefiles for common RNA-seq data analysis workflows (STAR and Kallisto).
Python
87
star
4

tftargets

🎯 Human transcription factor target genes from 6 databases in convenient R format.
R
84
star
5

pytabix

📇 Retrieve data in genomic intervals with a Python interface for tabix.
C
81
star
6

picardmetrics

🚦 Run Picard on BAM files and collate 90 metrics into one file.
Shell
39
star
7

snpsea

📊 Identify cell types and pathways affected by genetic risk loci.
C++
33
star
8

proxysnps

🔖 Get SNP proxies from the 1000 Genomes Project.
R
27
star
9

CENTIPEDE.tutorial

🐛 How to use CENTIPEDE to determine if a transcription factor is bound.
R
25
star
10

cellguide

🧭 Navigate single-cell RNA-seq datasets in your web browser.
JavaScript
25
star
11

homerkit

Read HOMER motif analysis output in R.
R
15
star
12

allelefrequencies

📂 HLA allele frequencies in tab-delimited format, downloaded from AFND.
Python
14
star
13

hlabud

🐶 hlabud: HLA genotype analysis in R
R
13
star
14

snpbook

📙 Explore 1000 Genomes variant data with JavaScript.
JavaScript
8
star
15

fibrotime

🍊 View the gene expression response to TNF and IL-17A with vanilla Javascript and HTML.
Jupyter Notebook
6
star
16

circles

🌈
HTML
5
star
17

xlmhg

📉 Non-parametric rank enrichment test for binary data.
C++
5
star
18

saturation

🧽 Estimate sequencing saturation for GEX, VDJ, and ADT data from the 10x Genomics platform.
R
3
star
19

dotfiles

Kamil's dotfiles
Vim Script
3
star
20

slowkow.com

Personal website.
HTML
3
star
21

pubmed-pairs

✌️ Search PubMed for each pair of terms from two lists.
JavaScript
3
star
22

arrayqc

Quality control metrics for microarray data.
R
2
star
23

covid-stats

New daily Covid cases and deaths in USA. Data from usafacts.org
R
1
star
24

fern

🌿 Barnsley fern
HTML
1
star