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

Allow plotting 'by' a variable, like timepoint #121

Open
aclark02-arcus opened this issue Oct 28, 2024 · 1 comment
Open

Allow plotting 'by' a variable, like timepoint #121

aclark02-arcus opened this issue Oct 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@aclark02-arcus
Copy link
Collaborator

In our vital signs data, we have some measurements gathered at different timepoints... for example: measuring blood pressure after lying down, standing, and standing for 5 mins (etc). Because of that, are converting that column to an item_type = 'other' and that's forcing the whole tab to only display a table. If we mark it as 'continuous', the plot will have several points plotted on the same day. I envision this use case being an enhancement to the plots more than anything. But in order to avoid facet_wrap(), timepoint would probably have to be a filter on the right hand side. Or perhaps give users the option to aggregate the measurements into a mean plotted over time? OR you could adapt the legend and to make each measurement a different shape? Definitely a lot of ways to go.

Originally posted by @aclark02-arcus in #117 (comment)

@LDSamson
Copy link
Collaborator

LDSamson commented Nov 1, 2024

item_type = 'other' is meant for data incompatible for figures, so I think we should not use it this way. What if you plot them in separate figures for the time being, and give them names like SysBP 5min standing, SysBP laying down etc? It would be the easiest solution for now and you can still properly compare different conditions.

It is also the question what the medical monitors want to know and based on that you can provide a study-specific derivative value. For example, if they are interested in orthostatic hypotension, you could create a variable that shows the difference of the systolic blood pressure measured when laying down and when standing.

Can you maybe create an example dataset so that we can check out different visualization methods? If we introduce new figures they should of course be robust & reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants