Skip to content

Upcoming ggplot2 version incompatible with BCEA #74

Description

@teunbrand

Hi there,

We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check.
The issue is a broken example and it occurred in the following place:

BCEA/R/plot.bcea.R

Lines 76 to 81 in 152c2b4

#' plot(he,
#' graph = "ggplot2", # use ggplot2
#' ICER_size = 1.5, # extra options modifies the mean point size
#' text = list(size=rel(1.25)) # modifies the text size
#' )
#' }

More specifically, I think the text element becomes corrupted around this step in the plotting function.

BCEA/R/plot.bcea.R

Lines 166 to 169 in 152c2b4

global_params <-
modifyList(default_params,
extra_params,
keep.null = TRUE)

You can test your code with the development version of ggplot2 by installing it as follows:

# install.packages("pak")
pak::pak("tidyverse/ggplot2")

We aim to release the new ggplot2 version in about 2 weeks, and hope you can submit a fix to CRAN around that time. Hopefully this will inform you in a timely manner.

Best wishes,
Teun

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions