guix-commits
[Top][All Lists]
Advanced

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

06/07: gnu: Add r-survminer.


From: guix-commits
Subject: 06/07: gnu: Add r-survminer.
Date: Fri, 11 Sep 2020 05:06:18 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 3a7a072a48cc9e1af85b9326cc11d2b039bb9db4
Author: Peter Lo <peterloleungyau@gmail.com>
AuthorDate: Sun Jun 28 17:29:44 2020 +0800

    gnu: Add r-survminer.
    
    * gnu/packages/cran.scm (r-survminer): New variable.
    
    Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
---
 gnu/packages/cran.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index f6fea18..85c3808 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -23518,3 +23518,43 @@ implementation of the Shift-Algorithm by Streitberg & 
Roehmel.")
      "This package provides 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 "https://rpkgs.datanovia.com/survminer/index.html";)
+    (synopsis "Drawing survival curves using ggplot2")
+    (description
+     "This package contains the function @code{ggsurvplot()} for easily
+drawing 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)))



reply via email to

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