Skip to content

ggguides

Simplified Legend and Guide Alignment for 'ggplot2'

v1.1.10 · May 7, 2026 · MIT + file LICENSE

Description

Provides one-liner functions for common legend and guide operations in 'ggplot2'. Simplifies legend positioning, styling, wrapping, and collection across multi-panel plots created with 'patchwork' or 'cowplot'.

Downloads

CRAN

324

Last 30 days

13928th

1.1K

Last 90 days

1.8K

Last year

Trend: -2.7% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

36

Last 90 days

53

Last year

Trend: -92.9% (30d vs prior 30d)

autoCRAN

8

Last 7 days

24

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘ggguides-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/RtmpIXEu8U/file15989451160f00/legend_inside.R': No space left on device
Execution halted
 NONE
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

top-level files

Conversion of ‘README.md’ failed:
pandoc: /tmp/Rtmpv7zt6c/pandoc226d8940c50760.html: withFile: resource exhausted (No space left on device)
HasCallStack backtrace:
  collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:16
...[truncated]...
owIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
  ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

53 26 exported

Complexity

6.8 avg / 47 max

Call network

53 nodes / 39 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

8,566

Files

121

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,170 (37%)Tests 2,330 (27.2%)Docs 1,787 (20.9%)Vignettes 1,279 (14.9%)

API

Exported functions

27

Internal functions

27

Recent export changes

v1.1.4+27 align_guides_h, center_legend_title, collect_axes +24 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.74

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

20%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2026-01-09

Latest release

2026-05-07

Avg cadence

14 days

Cold removal rate

Dep drift

0

LOC over versions

v1.1.4: 7,651 LOCv1.1.5: 7,761 LOCv1.1.6: 7,813 LOCv1.1.10: 8,566 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies ggplot2 gridExtra gtable rlang ggguides

Version History

4 tracked
updated 1.1.10 ← 1.1.6 diff May 7, 2026
updated 1.1.6 ← 1.1.5 diff Apr 23, 2026
updated 1.1.5 ← 1.1.4 diff Apr 22, 2026
new 1.1.4 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Jan 9, 2026. Releases before tracking aren’t shown.