Hello everyone,
I am having a problem with -staplot-
I would like to produce the figure attached. In the y-axis, we have the different indicators (the variable is called "indicateurs") and each indicator is displayed in the group (the variable is called "dimensions") that it belongs to. In the x-axis, we have the percentage of the indicator (the variable is called "pourcentage"). In the data can be found below:
My data look like this:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str21 dimensions str48 indicateurs float pourcentage byte tag
"Nutrition" "Retard de croissance modéré" 37.76 1
"Nutrition" "Retard de croissance sévère" 18.8 1
"Nutrition" "Émancipation modéré" 13.94 1
"Nutrition" "Émancipation sévère" 4.5 1
"Nutrition" "Insuffisance pondérale modéré" 29.16 1
"Nutrition" "Insuffisance pondérale sévère" 11.1 1
"Nutrition" "Allaitement exclusif" 83.8 1
"Santé" "Moustiquaire imprégnée d’insecticide" 45.66 1
"Santé" "Accouchement assisté par un personnel de santé" 65.85 1
"Santé" "Moustiquaire imprégnée d’insecticide" 73.09 0
"Santé" "Mortalité" 13.96 1
"Protection" "Extrait de naissance" 77.41 1
"Protection" "Garde inadéquate de l’enfant" 64.21 1
"Eau et assainissement" "Accès à une source d'eau améliorée" 39.96 1
"Eau et assainissement" "Accès à l'assainissement amélioré" 87.57 1
"Habitation" "Structure du logement" 92.4 1
"Habitation" "Promiscuité" 28.28 1
"Habitation" "Accès à l’électricité" 93.25 1
end
I had typed the following command :
catplot indicateurs dimensions , percent( pourcentage) var1opts(label(ang(45)))
But it is so messy and not close to the attached Figure done in Excel.
Any help will be greatly appreciated.
Thank you in advance!
I am having a problem with -staplot-
I would like to produce the figure attached. In the y-axis, we have the different indicators (the variable is called "indicateurs") and each indicator is displayed in the group (the variable is called "dimensions") that it belongs to. In the x-axis, we have the percentage of the indicator (the variable is called "pourcentage"). In the data can be found below:
My data look like this:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str21 dimensions str48 indicateurs float pourcentage byte tag
"Nutrition" "Retard de croissance modéré" 37.76 1
"Nutrition" "Retard de croissance sévère" 18.8 1
"Nutrition" "Émancipation modéré" 13.94 1
"Nutrition" "Émancipation sévère" 4.5 1
"Nutrition" "Insuffisance pondérale modéré" 29.16 1
"Nutrition" "Insuffisance pondérale sévère" 11.1 1
"Nutrition" "Allaitement exclusif" 83.8 1
"Santé" "Moustiquaire imprégnée d’insecticide" 45.66 1
"Santé" "Accouchement assisté par un personnel de santé" 65.85 1
"Santé" "Moustiquaire imprégnée d’insecticide" 73.09 0
"Santé" "Mortalité" 13.96 1
"Protection" "Extrait de naissance" 77.41 1
"Protection" "Garde inadéquate de l’enfant" 64.21 1
"Eau et assainissement" "Accès à une source d'eau améliorée" 39.96 1
"Eau et assainissement" "Accès à l'assainissement amélioré" 87.57 1
"Habitation" "Structure du logement" 92.4 1
"Habitation" "Promiscuité" 28.28 1
"Habitation" "Accès à l’électricité" 93.25 1
end
I had typed the following command :
catplot indicateurs dimensions , percent( pourcentage) var1opts(label(ang(45)))
But it is so messy and not close to the attached Figure done in Excel.
Any help will be greatly appreciated.
Thank you in advance!
Comment