plot_cod: Plot function for COD data

View source: R/fun-figures.R

plot_codR Documentation

Plot function for COD data

Description

Plot function for COD data

Usage

plot_cod(cod, perc = FALSE, type = "barplot")

Arguments

cod

Causes of death matrix containing death counts corresponding to the population and time period of the life table;

perc

Logical. If TRUE data will be displayed as percentages else as absolute values. Default: FALSE.

type

Options: "barplot" or "piechart". #' @examples D <- data_gbd2021_cod # cod data cod <- D[D$region == "Romania" & D$sex == "both" & D$period == 2021, ] plot_cod(cod)


mpascariu/MortalityCauses documentation built on April 17, 2025, 8:31 p.m.