Skip to content

geom_step truncating line too early before null value #532

Open
@joshmyzie2

Description

@joshmyzie2

It seems that geom_step is truncating the line too early when it encounters a null value. Rather than continue the line until the null value, it stops at the prior value:

Example:
ggplot(data.frame(x=1:5, y=c(1,2,NA,1,1)), aes(x,y)) + geom_step()

Plain ggplot2:
ggplot

Plotly:
plotly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions