Announcement

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

  • catplot - how to change labels of variable by()

    Dear all,

    I'm using the community-contributed command catplot in Stata 15 to describe categorical variables by a grouping variable.

    I want to change the size of the labels of the grouping variable.
    I haven't found a way to change it.
    Click image for larger version

Name:	c1.png
Views:	2
Size:	42.0 KB
ID:	1637818

    My syntax is:
    catplot sexe, by(c4, col(6) note("")) asyvars stack percent(c4) recast(hbar) scheme(s1color) ///
    bar(1, color("blue%50")) bar(2, color("orange%50")) blabel(bar, position(center) format(%3.2f) size(6.5)) ///
    legend(size(6.5)) ytitle("Porcentaje (%)", size(6.5)) ylabel(, labsize(5.5)) ///
    xsize(20) ysize(3) name(c1, replace)

    Could anyone please help me?

    Thank you a lot for advanced,

    Regina MG
    Attached Files

  • #2
    You need to do that beforehand.

    Comment


    • #3
      Thank you, but how could I do it in the syntax before?

      Comment


      • #4
        Specify within option -subtitle()-

        Code:
        sysuse auto, clear
        catplot mpg if rep78<=2, by(rep78, note(""))  subtitle(, size(20))
        Click image for larger version

Name:	Graph.png
Views:	1
Size:	19.2 KB
ID:	1637843

        Comment


        • #5
          Sorry; I misread the question.

          Comment


          • #6
            Thank you very much. It's fantastic!

            Comment

            Working...
            X