ghammad / pyActigraphy

Python-based open source package for actigraphy data analysis
https://ghammad.github.io/pyActigraphy
GNU General Public License v3.0
146 stars 31 forks source link

Visualization of Actigraphy data #122

Open loukasilias opened 2 years ago

loukasilias commented 2 years ago

Hello,

In the current tutorials/implementations, all the days are visualized in one diagram. Could I visualize one day per diagram? I mean something like this: https://s3.amazonaws.com/actigraphcorp.com/wp-content/uploads/2018/02/19210723/screenshot-al-inclineview-v5.png

Thank you. Best regards, Loukas

ghammad commented 2 years ago

Hello @loukasilias

Indeed, having access to a real actogram visualisation would be nice.

At first, I did not want to develop visualisation function for pyActigraphy because I did not want to tie the package to a specific plotting package and let the users decide which one they'd like to use.

However, visualisation is an important part of the analysis process.

Therefore, I started to develop some helper functions for the plotly package. The code is available in the 'feature/viz' branch: https://github.com/ghammad/pyActigraphy/tree/feature/viz

Hopefully,this dev will be part of the next release. For the moment, I can only advice you to 'borrow' the code from this branch: https://github.com/ghammad/pyActigraphy/blob/feature/viz/pyActigraphy/viz/viz.py#L22

Hope that helps.

Cheers,

Greg

ghammad commented 2 months ago

64