Skip to content

support for scale_*_reverse() #343

@jkeuskamp

Description

@jkeuskamp

A feature request rather than a bug:
Units facilitates the usage of ggplot with units rather seamlessly.
A small shortcoming is the usage of scale_*_reverse(). This fails with

Error in Ops.units(x, range[1]) : 
  both operands of the expression should be "units" objects

because scale_*_reverse() calls scale_y_continuous(trans = scales::reverse_trans()) to invert the axis.
It would be convenient if scale_*_reverse() would call scale_y_units(trans = scales::reverse_trans()) when applicable.

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