Skip to content

Commit e451ffa

Browse files
authored
Merge pull request #92 from AstraZeneca/version_0_7_updates
Version 0 7 updates
2 parents 3510063 + abc21c9 commit e451ffa

28 files changed

+2959
-717
lines changed

DESCRIPTION

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
Package: maraca
2-
Version: 0.6
2+
Version: 0.7
33
Type: Package
44
Title: The Maraca Plot: Visualization of Hierarchical Composite Endpoints in Clinical Trials
55
License: Apache License (>= 2)
66
Authors@R: c(
7-
person("Martin Karpefors", "", email = "[email protected]", role = "aut"),
8-
person("Samvel B. Gasparyan", "", email = "[email protected]", role = "aut"),
9-
person("Monika Huhn", "", email = "[email protected]", role = c("aut", "cre")),
10-
person("Stefano Borini", "", email = "[email protected]", role = c("ctb")))
7+
person("Martin Karpefors", "", email = "[email protected]", role = "aut",
8+
comment = c(ORCID = "0000-0003-3136-9882")),
9+
person("Samvel B. Gasparyan", "", email = "[email protected]", role = "aut",
10+
comment = c(ORCID = "0000-0002-4797-2208")),
11+
person("Stefano Borini", "", email = "[email protected]", role = c("ctb")),
12+
person("Monika Huhn", "", email = "[email protected]", role = c("aut", "cre"),
13+
comment = c(ORCID = "0009-0000-7865-6008")))
1114
Description: Library that supports visual interpretation of hierarchical composite
1215
endpoints (HCEs). HCEs are complex constructs used as primary endpoints in
1316
clinical trials, combining outcomes of different types into ordinal endpoints,
@@ -20,12 +23,14 @@ Encoding: UTF-8
2023
LazyData: true
2124
Depends:
2225
R (>= 3.5),
23-
hce (>= 0.5)
26+
hce (>= 0.5),
27+
ggplot2 (>= 3.3)
2428
Imports:
2529
dplyr (>= 1.0),
2630
tidyr (>= 1.2),
27-
ggplot2 (>= 3.3),
28-
checkmate (>= 2.1)
31+
checkmate (>= 2.1),
32+
patchwork(>= 1.0.0),
33+
lifecycle
2934
RoxygenNote: 7.2.3
3035
Suggests:
3136
knitr (>= 1.39),

NAMESPACE

+5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
S3method(component_plot,default)
44
S3method(component_plot,hce)
55
S3method(component_plot,maraca)
6+
S3method(cumulative_plot,default)
7+
S3method(cumulative_plot,hce)
8+
S3method(cumulative_plot,maraca)
69
S3method(plot,hce)
710
S3method(plot,maraca)
811
S3method(print,maraca)
912
export(component_plot)
13+
export(cumulative_plot)
1014
export(maraca)
1115
export(plot_maraca)
1216
export(validate_maraca_plot)
17+
import(ggplot2)
1318
import(hce)

NEWS.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# maraca 0.7
2+
3+
## New features
4+
5+
- The maraca package has been re-factored to allow flexibility in the type of
6+
outcomes that can be visualized. The user can now also include binary endpoints
7+
in their hierarchical endpoint. Details are given in the new vignette
8+
"Maraca Plots - Alternative Endpoints".
9+
- Additionally to the `component_plot()`, there has been a new plot added called
10+
`cumulative_plot()`. As opposed to the previous plot showing the individual
11+
components of the win odds computation, this plot is displaying
12+
the endpoints cumulated instead (adding one component of hierarchical endpoint
13+
at a time). Details can be found in the vignette "Maraca Plots - Plotting win odds".
14+
15+
## Parameter change
16+
- As part of the re-factoring to allow for other endpoint types, the parameter
17+
`tte_outcomes` has been changed to `step_outcomes` and the parameter
18+
`continuous_outcome` to `last_outcome`.
19+
20+
## Dependency change
21+
22+
- The `ggplot2` is now automatically attached when loading `maraca`.
23+
- `maraca` has a new dependency - the `patchwork` package.
24+
25+
## Bug fixes
26+
27+
- The `trans` parameter in the plotting functions was not working as
28+
intended. It now enables x-axis transformation for the continuous
29+
endpoint part of the plot.
30+
131
# maraca 0.6
232

333
## New features
@@ -15,7 +45,7 @@
1545

1646
- `maraca` now has increased the version dependency for the package `hce`
1747
to >= 0.5.
18-
- The `hce` is now automatically attached when loading `maraca`.
48+
- The `hce` package is now automatically attached when loading `maraca`.
1949

2050
# maraca 0.5.1
2151

R/aaa.R

+12-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ utils::globalVariables("n")
44
utils::globalVariables("n.event")
55
utils::globalVariables("x")
66
utils::globalVariables("y")
7+
utils::globalVariables("xend")
8+
utils::globalVariables("yend")
79
utils::globalVariables("strata")
810
utils::globalVariables("surv")
911
utils::globalVariables("proportion")
@@ -17,13 +19,17 @@ utils::globalVariables("violiny")
1719
utils::globalVariables("violinx")
1820
utils::globalVariables("adjusted.time")
1921
utils::globalVariables("tte_outcomes")
22+
utils::globalVariables("step_values")
23+
utils::globalVariables("type")
24+
utils::globalVariables("t_cdf")
2025
utils::globalVariables("continuous_outcome")
2126
utils::globalVariables("treatments")
2227
utils::globalVariables("fixed_followup_days")
2328
utils::globalVariables("average")
29+
utils::globalVariables("estimate")
2430
utils::globalVariables("value")
2531
utils::globalVariables("percentage")
26-
utils::globalVariables("name")
32+
utils::globalVariables("count")
2733
utils::globalVariables(".env")
2834
utils::globalVariables("separation")
2935
utils::globalVariables("gap")
@@ -47,3 +53,8 @@ utils::globalVariables("TOTAL")
4753
utils::globalVariables("WIN_A")
4854
utils::globalVariables("WIN_P")
4955
utils::globalVariables("TIE_A")
56+
utils::globalVariables("linetype")
57+
utils::globalVariables("method")
58+
utils::globalVariables("UCL")
59+
utils::globalVariables("LCL")
60+
utils::globalVariables("tot")

R/general.R

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#' @docType package
44
#' @name maraca
55
#' @import hce
6+
#' @import ggplot2
67
#' @aliases maraca-package
78
NULL
89

0 commit comments

Comments
 (0)