Skip to content

coord_trans() causes geom_hline() to draw incomplete lines #2812

Closed
@mafed

Description

@mafed

geom_hline draws incomplete lines when used together with coord_trans, regardless of their respective order of addition.

mydf <- data.frame(x = 0L:20,
                   y = -10:10)
ggplot(data = mydf, aes(x, y)) + 
  geom_point() + 
  coord_trans(x = "log1p") +
  geom_hline(yintercept = c(-10, 10))

image

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