Skip to content

Commit

Permalink
Merge pull request #450 from openpharma/bug/449-ribbon
Browse files Browse the repository at this point in the history
add visR namespace to step_ribbon function call re issue #449
  • Loading branch information
bailliem authored Aug 5, 2022
2 parents caeeffa + 36c3946 commit f20aee3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: visR
Title: Clinical Graphs and Tables Adhering to Graphical Principles
Version: 0.3.0.9003
Version: 0.3.0.9004
Authors@R: c(
person("Mark", "Baillie", , "bailliem@gmail.com", role = c("aut", "cre", "cph")),
person("Diego", "Saldana", , "diego.saldana@roche.com", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/add_CI.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ add_CI.ggsurvfit <- function(gg,
ymin = est.lower,
ymax = est.upper
),
stat = "stepribbon",
stat = StatStepribbon,
na.rm = TRUE,
show.legend = FALSE
) +
Expand Down
4 changes: 3 additions & 1 deletion R/stat_stepribbon.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#' Step ribbon statistic
#'
#' @description
#' `r lifecycle::badge("experimental")`
#' Provides stair-step values for ribbon plots, often using in
#' conjunction with `ggplot2::geom_step()`.
#' The step ribbon can be added with `stat_stepribbon()` or
Expand Down Expand Up @@ -39,7 +41,7 @@ stat_stepribbon <- function(mapping = NULL, data = NULL, geom = "ribbon",
ggplot2::layer(
data = data,
mapping = mapping,
stat = StatStepribbon,
stat = visR::StatStepribbon,
geom = geom,
position = position,
show.legend = show.legend,
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ coverage](https://codecov.io/gh/openpharma/visR/branch/develop/graph/badge.svg)]
[![R-CMD-check](https://github.com/openpharma/visR/workflows/R-CMD-check/badge.svg)](https://github.com/openpharma/visR/actions)
[![CRAN
status](https://www.r-pkg.org/badges/version/visR)](https://CRAN.R-project.org/package=visR)
<a href=https://github.com/pharmaR/riskmetric><img src=https://img.shields.io/badge/riskmetric-0.52-green></img></a>
<a href=https://github.com/pharmaR/riskmetric><img src=https://img.shields.io/badge/riskmetric--1.5-green></img></a>
<!-- badges: end -->

The goal of visR is to enable fit-for-purpose, reusable clinical and
Expand Down Expand Up @@ -83,7 +83,7 @@ adtte %>%
)
```

<img src="man/figures/README-example-1.svg" width="100%" />
<img src="man/figures/README-example-1.png" width="100%" />

## Cite visR

Expand Down Expand Up @@ -112,7 +112,9 @@ agree to abide by its terms. Thank you to all contributors:
[@joanacmbarros](https://github.com/joanacmbarros),
[@Jonnie-Bevan](https://github.com/Jonnie-Bevan),
[@kawap](https://github.com/kawap),
[@kawap93](https://github.com/kawap93),
[@kentm4](https://github.com/kentm4),
[@krystian8207](https://github.com/krystian8207),
[@kzalocusky](https://github.com/kzalocusky),
[@lcomm](https://github.com/lcomm),
[@lesniewa](https://github.com/lesniewa),
Expand Down
Binary file modified man/figures/README-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f20aee3

Please sign in to comment.