@@ -16,6 +16,7 @@
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 2021 Frank Pursel <frank.pursel@gmail.com>
+;;; Copyright © 2022 Simon Tournier <zimon.toutoune@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -847,6 +848,35 @@ (define-public r-bit64
caching.")
(license license:gpl2)))
+(define-public r-chorddiag
+ (package
+ (name "r-chorddiag")
+ (version "0.1.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mattflor/chorddiag")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bpy9q861l1hyyiqbx2f7qzp7j7im8bkcfdwgxzk5fm0250p359a"))))
+ (build-system r-build-system)
+ (propagated-inputs
+ (list r-htmlwidgets r-rcolorbrewer))
+ (native-inputs
+ (list r-knitr))
+ (home-page "https://github.com/mattflor/chorddiag")
+ (synopsis "Create D3 chord diagram")
+ (description
+ "This package provides tools to create interactive chords diagrams via
+the D3 Javascript library. Chord diagrams show directed relationships among a
+group of entities. This package is based on
+@url{http://bl.ocks.org/mbostock/4062006} with some modifications (fading) and
+additions (tooltips, bipartite diagram type).")
+ (license license:gpl3+)))
+
(define-public r-dichromat
(package
(name "r-dichromat")