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

plot.netsim() do not start the lines where it should after a restart #877

Open
AdrienLeGuillou opened this issue Feb 5, 2024 · 0 comments
Assignees

Comments

@AdrienLeGuillou
Copy link
Member

after a simulation restart, when an EpiTracker is added (not present in the original simulation), plot.netsim() make the line start at 0 instead of the restart point.

The axis however are of the right dimensions (all timesteps)

I suppose the issue comes from a call to na.rm somewhere before the plot is made. As new trackers have NA for all the values before creation.

Note: the issue is not present with as.data.frame and ggplot2

@AdrienLeGuillou AdrienLeGuillou self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant