Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_ribbons can't handle NA values #1884

Open
LTribelhorn opened this issue Nov 17, 2020 · 0 comments
Open

add_ribbons can't handle NA values #1884

LTribelhorn opened this issue Nov 17, 2020 · 0 comments

Comments

@LTribelhorn
Copy link

@LTribelhorn LTribelhorn commented Nov 17, 2020

The plotly function add_ribbons() doesn't function properly when cases in the middle or at the end have NA values. These lead to a weird behaviour where parts of the ribbons are missing or drawn in wrong places (see Plots 1 & 3). When the connectgaps-Attribute is set to TRUE for the ribbon the bug doesn't appear (see Plot 2).
NA values in the beginning don't seem to be a problem as well (see Plot 3, Red Trace 2).

The same behaviour has also been reported with ggplot and plotly in issue #1060. But because it may either be two separate problems or just a problem in plotly itself also affecting the ggplot visualization I decided to open this separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.