aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorPeter Lo <peterloleungyau@gmail.com>2020-06-28 17:29:44 +0800
committerRicardo Wurmus <rekado@elephly.net>2020-09-11 11:06:51 +0200
commit3a7a072a48cc9e1af85b9326cc11d2b039bb9db4 (patch)
tree8eae32ca565e8932fda631d14d0cdebe08bbee7a /gnu/packages
parentd89a65e65368e782df344608722e66d83e23da32 (diff)
downloadguix-3a7a072a48cc9e1af85b9326cc11d2b039bb9db4.tar.gz
guix-3a7a072a48cc9e1af85b9326cc11d2b039bb9db4.zip
gnu: Add r-survminer.
* gnu/packages/cran.scm (r-survminer): New variable. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cran.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index f6fea1885f..85c38087f8 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)))