Subject: [bug#55852] [PATCH 4/6] gnu: Add r-cartogram.

From: Wiktor Żelazny <[email-masked]>
Date: Wed, 8 Jun 2022 19:05:14 +0200

* gnu/packages/cran.scm (r-cartogram): New variable.
---
 gnu/packages/cran.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index a8e604c273..6ffa9137a7 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -33432,3 +33432,22 @@ (define-public r-automap
      "@command{automap} performs an automatic interpolation by automatically
 estimating the variogram and then calling @command{gstat}.")
     (license (list license:gpl2+ license:gpl3+))))
+
+(define-public r-cartogram
+  (package
+    (name "r-cartogram")
+    (version "0.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "cartogram" version))
+              (sha256
+               (base32
+                "0kz8hwdr5n8llkylwaixnb66f4pzaxxniz57spxhqizmi6qay7yd"))))
+    (properties `((upstream-name . "cartogram")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-packcircles r-sf))
+    (home-page "https://github.com/sjewo/cartogram/")
+    (synopsis "Create cartograms with R")
+    (description "This package enables construction of continuous and
+non-contiguous area cartograms.")
+    (license license:gpl3)))
-- 
2.36.1