Subject: [bug#53754] [PATCH] gnu: Add r-ggside.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Thu, 3 Feb 2022 19:38:03 +0100

From: Mădălin Ionel Patrașcu <[email-masked]>

* gnu/packages/cran.scm (r-ggside): New variable.
---
 gnu/packages/cran.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 80e2ca9021..c30aa8a0f0 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -11,7 +11,7 @@
 ;;; Copyright © 2018 Sandeep Subramanian <[email-masked]>
 ;;; Copyright © 2018 Charlie Ritter <[email-masked]>
 ;;; Copyright © 2018 Konrad Hinsen <[email-masked]>
-;;; Copyright © 2018, 2020, 2021 Mădălin Ionel Patrașcu <[email-masked]>
+;;; Copyright © 2018, 2020, 2021, 2022 Mădălin Ionel Patrașcu <[email-masked]>
 ;;; Copyright © 2018 Laura Lazzati <[email-masked]>
 ;;; Copyright © 2018 Leo Famulari <[email-masked]>
 ;;; Copyright © 2018 Marius Bakke <[email-masked]>
@@ -796,6 +796,32 @@ (define-public r-ggpmisc
 respecting the grammar of its graphics paradigm.")
     (license license:gpl2+)))
 
+(define-public r-ggside
+  (package
+    (name "r-ggside")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "ggside" version))
+              (sha256
+               (base32
+                "1x505zizv7hf65pxp9j5v92c3bchhxh9dsrkk1m55kwqqnsl5nza"))))
+    (properties `((upstream-name . "ggside")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-ggplot2 r-glue r-gtable r-rlang r-scales))
+    (native-inputs (list r-knitr))
+    (home-page "https://cran.r-project.org/package=ggside")
+    (synopsis "Side grammar graphics that extends @code{ggplot2}")
+    (description
+     "The grammar of graphics as shown in @code{ggplot2} has provided an
+expressive API for users to build plots.  This package @{ggside} extends
+@code{ggplot2} by allowing users to add graphical information about one of the
+main panel's axis using a familiar @code{ggplot2} style API with tidy data.
+This package is particularly useful for visualizing metadata on a discrete
+axis, or summary graphics on a continuous axis such as a boxplot or a density
+distribution.")
+    (license license:expat)))
+
 (define-public r-gprofiler
   (package
     (name "r-gprofiler")
-- 
2.34.0