Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

ggplot2 is switching to scales::Range classes #1

@teunbrand

Description

@teunbrand

Hi Constantin,

Funny that I found your repo that we discussed during the conference in this way :)

In any case, I have come to warn you that the unexported range constructors from ggplot2 are being superseded by the exported {scales} versions. Here is an example where you're using these:

new$range <- ggplot2:::discrete_range()
new$range_c <- ggplot2:::continuous_range()

If you replace these constructors with scales::ContinuousRange$new() and scales::DiscreteRange$new(), all should sync up with the impending dev version of ggplot2. For more context, see tidyverse/ggplot2#5086.

Cheers!

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