Skip to content

scales v1.1.1.: pal_hue() does not use argument 'h.start' anymore #288

Closed

Description

@aalucaci

The pal_hue() function does not use the argument 'h.start' anymore.
Compare:

https://github.com/r-lib/scales/blob/v1.1.1/R/pal-hue.r

with

https://github.com/r-lib/scales/blob/v1.1.0/R/pal-hue.r

'h.start' is not applied anymore in the latest version (v1.1.1).

If this was by intention, my guess is that 'h.start' should also be removed from the arguments lists, since it does not do anything.
Otherwise, this probably shows the need of introducing a test showing that the argument is indeed used.

Kind regards,
Angela

Activity

  1. sebschub commented on Aug 6, 2020

    @sebschub

    As shown in tidyverse/ggplot2#4163 (comment), this produces misbehaviour in ggplot.

  2. added
    bugan unexpected problem or unintended behavior
    on Mar 16, 2022
  3. hadley commented on Mar 16, 2022

    @hadley
    Member

    Minimal reprex:

    library(scales)
    hue_pal()(4)
    #> [1] "#F8766D" "#7CAE00" "#00BFC4" "#C77CFF"
    hue_pal(h.start = 90)(4)
    #> [1] "#F8766D" "#7CAE00" "#00BFC4" "#C77CFF"

    Created on 2022-03-16 by the reprex package (v2.0.1)

  4. hadley commented on Mar 17, 2022

    @hadley
    Member

    h.start was lost here: f7b7bd2

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

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions