DALY-plots: DALY Plots

Description Usage Arguments Value See Also

Description

Functions to generate various plots of DALY results.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Uncertainty intervals
line_plot(agents, samples, asc = TRUE, names = NULL,
          ylim = NULL, ylab = "DALY (global)", ylog = TRUE,
          axis.text.x = element_text(angle = 45, hjust = 1, vjust = 1),
          col = NULL) 
        
## Barplots by (sub)region
region_barplot(x, names = NULL, xlab = NULL, ylab = NULL,
               col = NULL, nrow = 1)

## Barplots of YLD/YLL or age groups
full_barplot(..., labels = NULL, names = NULL,
             sort = c("none", "asc", "desc"), xlab = "Agent",
             ylab = "Proportion", col = NULL, nrow = 1,
             axis.text.x = element_text())

## Scatter plot of population versus patient burden
scatter_plot(x_val, y_val, fb = FALSE, names = NULL, col = NULL,
             xlog = TRUE, ylog = TRUE, labels = FALSE)

Arguments

agents

list of agents to be included in plot

samples

list of samples to be plotted

asc

logical flag; should ascending order be used?

names

vector of agent names

ylim

y-axis limits

xlab

x-axis label

ylab

y-axis label

xlog

logical flag; should x-axis be shown on log scale?

ylog

logical flag; should y-axis be shown on log scale?

axis.text.x

x axis tick labels

col

vector of colours

x

matrix of point estimates by hazard and (sub)region

nrow

number of rows in legend

...

list of samples, one for each category

labels

category labels

sort

sorting option; should be any of c("none", "asc", "desc")

x_val

matrix of point estimate and uncertainty interval, per agent

y_val

matrix of point estimate and uncertainty interval, per agent

fb

logical flag; are foodborne results used?

Value

All functions produce a ggplot2 graphic.

See Also

DALY_map, DALY-summarize, FERG_report


brechtdv/FERG documentation built on May 13, 2019, 5:05 a.m.