Skip to content

Facet_zoom + geom_abline issue #21

Description

@Alexander-Minyushkin

How to add abline to facet_zoom plot if I want to see it both on original and zoomed parts?
Currently I get this error:

ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
    geom_point() + facet_zoom(x = Species == "versicolor") +
    geom_abline(slope =0.3) 

Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions