• Stars
    star
    1,203
  • Rank 38,800 (Top 0.8 %)
  • Language
    R
  • License
    GNU General Publi...
  • Created almost 9 years ago
  • Updated 5 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.
192
star
2

harmonypy

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

snakefiles

🐍 Snakefiles for common RNA-seq data analysis workflows (STAR and Kallisto).
Python
88
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
83
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++
35
star
8

proxysnps

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

cellguide

🧭 Navigate single-cell RNA-seq datasets in your web browser.
JavaScript
26
star
10

CENTIPEDE.tutorial

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

allelefrequencies

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

hlabud

🐶 hlabud: HLA genotype analysis in R
TeX
16
star
13

homerkit

Read HOMER motif analysis output in R.
R
15
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
7
star
16

saturation

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

circles

🌈
HTML
5
star
18

xlmhg

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

pubmed-pairs

✌️ Search PubMed for each pair of terms from two lists.
JavaScript
4
star
20

dotfiles

Kamil's dotfiles
Vim Script
3
star
21

slowkow.com

Personal website.
HTML
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