-
Notifications
You must be signed in to change notification settings - Fork 4
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 options to plot_seromodel
#202
Comments
Thanks for opening this issue, @zmcucunuba! This was raised by other users during our last user test. I agree this would be useful to facilitate model comparison. For some context, a typical (time model) plot generated by means of However, when we plot the results from implementing the seromodel <- fit_seromodel(
serosurvey = serosurvey,
model_type = "constant"
)
plot_seromodel(seromodel, serosurvey) It looks like: The reason for this is that, in the case of constant FOI models, we only estimate one value of the FOI and its corresponding R-hat, meaning that there is some ambiguity about whether to plot the constant FOI value as a function of age or time (e.g.): The solution for this may be to add an option to plot_seromodel(
seromodel = seromodel,
serosurvey = serosurvey,
plot_single_estimates = TRUE,
single_estimates_x = "time"
) @zmcucunuba, please let me know what you think of this solution. |
In #200 @ben18785 pointed out that users may want to suppress the summary at the top from the plot generated by
This can easily be solved by adding an option to include it or not, such that: plot_seromodel(
seromodel = seromodel,
serosurvey = serosurvey,
plot_single_estimates = TRUE,
include_summary = FALSE
) would return: I want to address this here as its related to |
Closed by #270 |
Is your feature request related to a problem? Please describe.
When using the
plot_seromodel
function with a constant model, the output is a single seroprevalence plot, rather than a plot showing age/time and r_hat. This makes it challenging to compare with other models using cowplot.Describe the solution you'd like
It would be beneficial if the plot distribution in cowplot could be made consistent with other models. As I’m comparing it with a time-varying model, it would be more straightforward if the Force of Infection (FoI) remained constant over time for a better comparison.
Additional context
The text was updated successfully, but these errors were encountered: