Skip to content

Annotation_raster does not work with scale_x_reverse #500

Closed

Description

@bleutner

Annotation_raster is not displayed, when one scale is reversed.

qplot(mpg, wt, data = mtcars) + annotation_raster(rainbow, xmin = 15,xmax = 20, ymin = 3, ymax = 4)

swiching xmin and xmax, doesn't affect plotting
qplot(mpg, wt, data = mtcars) + annotation_raster(rainbow, xmin = 20, xmax = 15, ymin = 3, ymax = 4)

doesn't work
qplot(mpg, wt, data = mtcars) + annotation_raster(rainbow, xmin = 15, xmax = 20, ymin = 3, ymax = 4) + scale_x_reverse()

Workaround: negative Coordinates
qplot(mpg, wt, data = mtcars) + annotation_raster(rainbow, xmin=-15,xmax=-20, ymin=3, ymax=4) + scale_x_reverse()

Activity

  1. hadley commented on Feb 24, 2014

    @hadley
    Member

    This sounds like a great feature, but unfortunately we don't currently have the development bandwidth to support it. If you'd like to submit a pull request that implements this feature, please follow the instructions in the development vignette.

  2. locked as resolved and limited conversation to collaborators on Jun 20, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions