Closed PritDash closed 4 months ago
This is an issue in {tern}. NA
s are dropped in the top plot but not in the bottom table/plot.
You can solve your issue instantly by doing anl <- anl %>% dplyr::mutate(AVISIT = droplevels(AVISIT))
but I will add this to {tern} for the future too.
@Melkiades : Thanks for the suggestion. But since the issue comes from the APP (tm_g_lineplot module) and I am not writting any custom modules; I think it will not be feasible to add the above snippet code into the APP.
@Melkiades : Thanks for the suggestion. But since the issue comes from the APP (tm_g_lineplot module) and I am not writting any custom modules; I think it will not be feasible to add the above snippet code into the APP.
You do not need to have this in the APP. It is enough that you do it in preprocessing. Anytime before the APP. Otherwise, you should wait for the fix in {tern} that I linked above here.
What happened?
In the lineplot module, when the user assigns the factor variable to the x argument, the module incorrectly applies right-hand filtering.
I am aware character instead of factor solves this issue partly but then we are losing on the proper ordering.
This results in the corresponding table being not filtered based on the selected AVISIT value.
Please let me know if you want me to work on this issue?
This is the reproducible example:
sessionInfo()
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy