Skip to content

coord_flip() and coord_cartesian() are exclusive #647

@etiennebr

Description

@etiennebr

It seems like i can't use coord_cartesian() with coord_flip(). It is one or the other, but can't combine them (always using the last one).

demo:

# regular
p <- qplot(disp, wt, data=mtcars) + geom_smooth(method = "loess")

# just flip
p + coord_flip()
# crop then flip (only flip)
p + coord_cartesian(ylim = c(3,5), xlim = c(100, 400)) + coord_flip()

# just crop
p + coord_cartesian(ylim = c(3,5), xlim = c(100, 400))
# flip then crop (only crop)
p + coord_flip() + coord_cartesian(ylim = c(3,5), xlim = c(100, 400))

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