Skip to content

Feature request: pal_between() #511

@teunbrand

Description

@teunbrand

This FR is for a simple discrete palette that does the following:

pal_between <- function(min, max) {
  force(min)
  force(max)
  new_discrete_palette(
    function(n) seq(min, max, length.out = n),
    type = "numeric"
  )
}

It'd be convenient for some discretisation of continuous values with a known range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions