Skip to content

Commit

Permalink
update README with yld for burden_disease
Browse files Browse the repository at this point in the history
  • Loading branch information
SaranjeetKaur committed Nov 14, 2024
1 parent 413d80b commit c1d8816
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ inc_cum("diabetes",
)
```

To plot burden of disease for, say, "yld", you can use the following code:

```{r burden_disease_plot}
data_weighted_bd_wide_collapse <- gen_data_weighted_burden(data_weighted)
burden_disease("yld", data_weighted_bd_wide_collapse)
```

<!--
### Cloning the Repository
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ inc_cum("diabetes",

<img src="man/figures/README-inc_cum_plot-1.png" width="100%" />

To plot burden of disease for, say, “yld”, you can use the following
code:

``` r
data_weighted_bd_wide_collapse <- gen_data_weighted_burden(data_weighted)
burden_disease("yld", data_weighted_bd_wide_collapse)
#> Warning: Use of `data_weighted_bd_wide_collapse$time` is discouraged.
#> ℹ Use `time` instead.
#> Use of `data_weighted_bd_wide_collapse$time` is discouraged.
#> ℹ Use `time` instead.
```

<img src="man/figures/README-burden_disease_plot-1.png" width="100%" />

<!--
### Cloning the Repository
&#10;```bash
Expand Down
Binary file added man/figures/README-burden_disease_plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c1d8816

Please sign in to comment.