Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Plabel(_all percent) graph pie

    Click image for larger version

Name:	2019-03-09 (2).png
Views:	2
Size:	75.9 KB
ID:	1487486

    I have to graph a pie in stata.

    Everything is perfect exept I'm not able to see all percent correctly, they are to close.




    Do you know a command to correct my problem?

    I look all document in stata for pie chart and I have found nothing.

    Thanks

    Patrick
    Last edited by Patrick Turcotte; 10 Mar 2019, 20:06.

  • #2
    Small pie slices always pose this problem. Where do you want the labels to go? A bar or dot chart wouldn't pose the same problem.

    Comment


    • #3

      Code:
      * Example generated by -dataex-. To install: ssc install dataex
      clear
      input float(pourcentage enfants)
      49.81 0
      12.95 1
       31.5 2
       3.32 3
       1.69 4
        .51 5
        .09 6
        .02 7
        .01 8
      end
      
      set scheme s1color 
      
      twoway bar pourcentage enfants, bfcolor(none) base(0) ///
      || scatter pourcentage enfants, ms(none) mla(pourcentage) mlabpos(12) legend(off) ///
      ysc(r(. 51)) ylabels(none) ytitle("") subtitle(pourcentage, place(w)) xla(0 "aucun" 1/8)
      Click image for larger version

Name:	enfants.png
Views:	1
Size:	15.6 KB
ID:	1487531


      Comment

      Working...
      X