plot_mdpi | R Documentation |
Plots of Multidimensional Poverty Measures
plot_mdpi(data, kala, factor = NULL)
data |
|
kala |
color palette with at least 15 colors but must be equal or higher than the number of options in the factor argument |
factor |
the optional grouping factor used in the computation measures. If not supplied only the national plots will be produced irrespective of whether the factor was used in the computation. |
A list of the following plots:
Multidimensional poverty index |
plot. |
Deprivation Score |
plot. |
Adjusted incidence of poverty |
plot. |
Intensity of poverty |
plot. |
Average deprivation among the deprived |
plot. |
Contribution of each Dimension |
plot. |
combined dimensions |
plot. |
national |
plot. |
combined dimensions of national |
plot. |
# Not run, uncomment to run
# library(MPI)
# data("examplePovertydf")
# data <- examplePovertydf
# dm <- list(d1 = c("Child.Mortality", "Access.to.health.care"),
# d2 = c("Years.of.education", "School.attendance", "School.lag"),
# d3 = c("Cooking.Fuel", "Access.to.clean.source.of.water",
# "Access.to.an.improve.sanatation", "Electricity",
# "Housing.Materials", "Asset.ownership"))
# dp <- mdpi(data, dm, Factor = "Region")
# library(MetBrewer)
# kala <- met.brewer("OKeeffe1", 15, type = "continuous")
# plot_mdpi(dp$MDPI, kala, "Region")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.