Skip to content

annotation_logticks() and coord_flip() don't seem to get along #881

Closed
@adsteen

Description

@adsteen

annotation_logticks() and coord_flip() appear to be mutually incompatible. For instance:

ggplot(mtcars, aes(x=mpg, y=disp)) + 
  geom_line() + 
  annotation_logticks() +
  coord_flip()

yields Error in unit(yticks$y, "native") : 'x' and 'units' must have length > 0. This plot works fine if either annotation_logticks() or coord_flip() is removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions