Skip to content

vline not working as annotation #1052

Closed
@elbamos

Description

@elbamos

Reproducible example:

data.frame(a = rnorm(1000), b = rnorm(1000)) %>%
ggplot(aes(x = a, y = b)) +
geom_point() +
annotate("vline", xintercept = 0)

If you specify x instead of xintercept, it throws an error that its missing xend. If you specify xend, it still throws an error that its missing xend.

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