SkillAgentSearch skills...

Ggwrap

🌯 Wrap ggplot2 plots over multiple rows

Install / Use

/learn @wilkox/Ggwrap
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CRAN_Status_Badge Lifecycle: deprecated

This package is no longer maintained

Use ggbreak::scale_wrap() instead.

ggwrap

‘ggwrap’ wraps a ‘ggplot2’ plot over multiple rows, to make plots with long x axes easier to read.

Installation

The development version of ‘ggwrap’ can be installed from GitHub:

devtools::install_github("wilkox/ggwrap")

Usage

The ggwrap function takes two arguments: a ‘ggplot2’ plot, and the number of rows over which the plot should be wrapped.

Here’s a simple plot.

library(ggplot2)
library(ggwrap)
plot <- ggplot(economics, aes(x = date, y = unemploy, colour = uempmed)) +
  geom_line()
plot

<!-- -->

We can use ggwrap to wrap the plot over four rows.

ggwrap(plot, 4)

<!-- -->

Related Skills

View on GitHub
GitHub Stars44
CategoryDevelopment
Updated3mo ago
Forks1

Languages

R

Security Score

72/100

Audited on Dec 11, 2025

No findings