Skip to content

coord_quickmap does not work with inset_element() #214

@richardvogg

Description

@richardvogg

I really, really like the new inset_element() function in patchwork.

This is not a big issue, but I noticed that when I am using coord_quickmap() in a plot, inset_element() does not work.

Small example:

`library(ggplot2)

test <- ggplot()+borders(regions="france")+coord_quickmap()
test + inset_element(test,0.1,0.1,0.5,0.5)
`

Error in seq.default(design$t[i], design$b[i]) :
'from' must be a finite number

The same without coord_quickmap() works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions