Description Usage Arguments Value Author(s) See Also Examples
This function produces a list of DALY objects and assigns class
'DALY_list'
to it. Methods are available to print and plot the
resulting object.
1 2 3 4 5 6 7 8 9 10 |
... |
In |
x |
Object of class |
prob |
Probability span by DALY error bar;
defaults to |
sort |
Should values be sorted from high to low?
defaults to |
names |
Vector of names to be plotted on the y-axis. If this argument
is |
bars |
Should YLL/YLD bars be plotted?
defaults to |
col |
Color of YLL and YLD barplot;
defaults to |
error_bars |
Should DALY error bars be plotted?
defaults to |
eb_col |
Color of DALY error bars; defaults to black |
grid |
Should a vertical grid be plotted?
defaults to |
An object of S3 class 'DALY_list'
.
getDALY
print.DALY
plot.DALY
scatterplot
DALYcalculator
(for a brief description of the DALY Calculator)
DALYmanual
(for a more comprehensive overview)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
##= load NCC example ======================================
setDALYexample(1)
##= calculate DALYs under different scenarios =============
ncc_00 <- getDALY(aw = FALSE, dr = 0)
ncc_03 <- getDALY(aw = FALSE, dr = 0.03)
ncc_13 <- getDALY(aw = TRUE, dr = 0.03)
##= store results as 'DALY_list' ==========================
ncc <- DALY_list(ncc_00, ncc_03, ncc_13)
##= barplot of different scenarios ========================
par(mar = c(4, 4, 1, 1) + .5)
plot(ncc, names = c("DALY[0,0]", "DALY[0,0.03]", "DALY[1,0.03]"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.