| graphique_ipm | R Documentation |
Produit un graphique en barres des contributions de chaque indicateur et chaque dimension a l'IPM. Retourne un objet ggplot2.
graphique_ipm(
res_ipm,
type = c("indicateurs", "dimensions"),
titre = NULL,
source = NULL
)
res_ipm |
saf_ipm – Resultat de |
type |
character – |
titre |
character ou NULL – Titre du graphique. Defaut : NULL |
source |
character ou NULL – Note de source. Defaut : NULL |
Un objet ggplot2
set.seed(42)
n <- 200
menages <- data.frame(
nutrition = rbinom(n,1,0.35), electricite = rbinom(n,1,0.60),
eau = rbinom(n,1,0.40), scolarisation = rbinom(n,1,0.30),
poids = runif(n,0.8,1.3)
)
res <- calcul_ipm(menages, var_nutrition="nutrition",
var_electricite="electricite", var_eau="eau",
var_scolarisation="scolarisation", poids="poids")
graphique_ipm(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.