Skip to contents

The function generates a figure showing mortality hazard ratio in correspondence with the daily mean of the MVPA/SED ratio. The figure is based on data extracted from Chastin et al. paper (2021; doi: 10.1123/jpah.2020-0635).

Usage

create_fig_ratio_mvpa_sed(score, language = c("en", "fr", "de"))

Arguments

score

A numeric value for mean daily MVPA/SED ratio.

language

A character value for setting the language with which the figure should be created: en for english; fr for french.

Value

A ggplot object.

Examples

create_fig_ratio_mvpa_sed(score = 0.06)
#> Warning: All aesthetics have length 1, but the data has 251 rows.
#>  Please consider using `annotate()` or provide this layer with data containing
#>   a single row.