Skip to content

Commit

Permalink
Added a block of code into the plot_data_with_intensity() function th…
Browse files Browse the repository at this point in the history
…at was erroneously removed during a previous commit. This block of code allows to show grey bands on the figure with intensity data to indicate what periods will not be considered for analysis.
  • Loading branch information
pydemull committed Jul 10, 2022
1 parent 087378c commit c9c356f
Show file tree
Hide file tree
Showing 4 changed files with 385 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/app_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app_ui <- function(request) {
tags$style(".main-header {vertical-align: middle;}"),
tags$style(".main-header .logo {vertical-align: middle;}")
),
title = span(img(src="www/favicon.png", width = 30), "activAnalyzer 1.0.3"), titleWidth = 237
title = span(img(src="www/favicon.png", width = 30), "activAnalyzer 1.0.4"), titleWidth = 237
),
shinydashboardPlus::dashboardSidebar(
tags$style(HTML(".sidebar-menu li a {font-size: 17px;}")),
Expand Down
16 changes: 16 additions & 0 deletions R/plot_data_with_intensity.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ plot_data_with_intensity <- function(data,
x = .data[[col_time]],
y = .data[[metric]])
) +
geom_rect(aes(
xmin = hms::as_hms(0),
xmax = hms::as_hms(valid_wear_time_start),
ymin = -Inf,
ymax = Inf),
color = "grey",
fill = "grey"
) +
geom_rect(aes(
xmin = hms::as_hms(valid_wear_time_end),
xmax = hms::as_hms("23:59:59"),
ymin = -Inf,
ymax = Inf),
color = "grey",
fill = "grey"
) +
scale_x_time(breaks = hms::hms(seq(3600, 23*3600, 2*3600)),
expand = c(0, 0),
labels = format_hm
Expand Down
20 changes: 16 additions & 4 deletions joss/paper.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
title: 'activAnalyzer: An app to analyze ActiGraph accelerometer data and to implement the use of the PROactive Physical Activity in COPD instruments'
tags:
- R
- physical activity
- sedentary behaviour
- accelerometer
- PROactive questionnaires
- actigraph
- COPD
- PROactive instruments
- R
- Shiny
authors:
- name: Pierre-Yves de Müllenheim
orcid: 0000-0001-9157-7371
Expand All @@ -20,22 +22,32 @@ affiliations:
- name: Hôpital Saint Philibert, GHICL, France
index: 2
date: 05 July 2022
bibliography: references.bib
---

# Summary
Physical activity is a behaviour related to many health outcomes. Accelerometry is commonly accepted as a more accurate method than questionnaires for measuring physical activity. ActiGraph devices have been the most used accelerometers in the scientific literature. Moreover, some research groups have developed specific frameworks to assess patients with specific conditions, as th D-PPAC and C-PPAC instruments developped by the PROactive consortium group for assessing physical activity in COPD patients.
Physical activity is a behaviour related to many health outcomes [@whoWHOGuidelinesPhysical2020]. To measure physical activity, researchers have increasingly used accelerometry during the past two decades to limit the influence of psychosocial bias in outcomes related to questionnaires use [@baumannPitfallsAccelerometerbasedMeasurement2018] and thus to use more valid methods for getting results [@hallalEnergyExpenditureCompared2013; @colbertComparativeValidityPhysical2011;@gardnerAssessmentFreelivingDaily1998]. Accelerometry has also become a way to access a diversity of metrics that cannot be easily (or not at all) obtained using questionnaires [@keadleEvaluationAccelerometerderivedMetrics2017; @backesAdvancedAnalyticalMethods2022].

ActiGraph devices have been the most used accelerometers in the scientific literature [@bassettAccelerometerbasedPhysicalActivity2015a]. ActiGraph accelerometers, along with its software companion (ActiLife), now allow to get movement date expressed in either *physical activity counts* or in *G-force* units.

Moreover, some research groups have developed specific frameworks to assess patients with specific conditions, as th D-PPAC and C-PPAC instruments developped by the PROactive consortium group for assessing physical activity in COPD patients.


- Importantance of actigraph and actilife sofware
- Importance of actigraph and actilife sofware
- problems for wide dissemination and use by clinicians, students, and some researchers; existence of programming interface but not accessible for non skilled users
-

# Statement of need
several packages : ggir, other...

# A description of how this software compares to other commonly-used packages in this research area.

# A list of key references including a link to the software archive.

# Usage



# Acknowledgements

# References
Loading

0 comments on commit c9c356f

Please sign in to comment.