guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42107] [PATCH 6/6] gnu: Add r-survminer.


From: Peter Lo
Subject: [bug#42107] [PATCH 6/6] gnu: Add r-survminer.
Date: Sun, 28 Jun 2020 17:29:44 +0800

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index f51e69689b..4b28f25954 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22454,3 +22454,44 @@ implementation of the Shift-Algorithm by Streitberg & 
Roehmel.")
       "Maximally selected rank statistics with several p-value
 approximations.")
     (license license:gpl2+)))
+
+(define-public r-survminer
+  (package
+    (name "r-survminer")
+    (version "0.4.7")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "survminer" version))
+        (sha256
+          (base32
+            "1pdj3gs4aii8gn8wf4smbwmjymbzwkjwr3kxf90dxyy6i66mqq3v"))))
+    (properties `((upstream-name . "survminer")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-broom" ,r-broom)
+        ("r-dplyr" ,r-dplyr)
+        ("r-ggplot2" ,r-ggplot2)
+        ("r-ggpubr" ,r-ggpubr)
+        ("r-gridextra" ,r-gridextra)
+        ("r-magrittr" ,r-magrittr)
+        ("r-maxstat" ,r-maxstat)
+        ("r-purrr" ,r-purrr)
+        ("r-rlang" ,r-rlang)
+        ("r-scales" ,r-scales)
+        ("r-survival" ,r-survival)
+        ("r-survmisc" ,r-survmisc)
+        ("r-tibble" ,r-tibble)
+        ("r-tidyr" ,r-tidyr)))
+    (native-inputs `(("r-knitr" ,r-knitr)))
+    (home-page
+      "http://www.sthda.com/english/rpkgs/survminer/";)
+    (synopsis
+      "Drawing Survival Curves using 'ggplot2'")
+    (description
+      "Contains the function @code{ggsurvplot()} for drawing easily
+beautiful and 'ready-to-publish' survival curves with the 'number at
+risk' table and 'censoring count plot'.  Other functions are also
+available to plot adjusted curves for `Cox` model and to visually
+examine 'Cox' model assumptions.")
+    (license license:gpl2)))
-- 
2.17.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]