| graphique_fgt | R Documentation |
Visualise les indices FGT nationaux et/ou par sous-groupe.
graphique_fgt(
fgt_obj,
type = c("barres", "indices"),
variable = NULL,
couleur = "#1B4965"
)
fgt_obj |
objet |
type |
character – |
variable |
character ou NULL – Variable de sous-groupe a representer |
couleur |
character – Couleur principale. Defaut : |
Objet ggplot2
## Not run:
set.seed(42)
menages <- data.frame(
depense_pc = c(rexp(70, 1/150000), rexp(30, 1/400000)),
poids = runif(100, 0.8, 1.2),
milieu = sample(c("urbain", "rural"), 100, TRUE, c(0.4, 0.6))
)
fgt <- calcul_fgt(menages, "depense_pc", 220000,
poids = "poids", sous_groupes = "milieu")
graphique_fgt(fgt, type = "barres", variable = "milieu")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.