Skip to content

Improve documentation for scale_*_gradient #3299

@paleolimbot

Description

@paleolimbot

There are several opportunities to improve the documentation for scale_*_gradient(). This is a documentation issue intended for the tidyverse dev day (#3267).

  • In scale_*_gradient(), it may be worth mentioning that passing na.value = NA is useful when used with the fill aesthetic (fill = NA results in no fill), but will not work for the colour aesthetic.

  • In scale_*_gradient(), the behaviour of midpoint when a trans is applied should be documented (depends on resolution of midpoint is not transformed in scale_color_gradient2 #3198).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions