Announcement

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

  • Question about -joy_plot- : labels

    Hi everyone,

    I have been using the excellent command -joy_plot- proposed by FernandoRios.

    I have just a question please: I would like to delete the labels in double in my graph (i.e. the labels "Clasico" up to "Tarifa Justa" that are in black over the different graph's types.
    Could anyone give me a suggestion please?
    Here is my code:

    Code:
    ssc install joy_plot
    joy_plot power_p1 if tariff_2 == 1, scheme(white_w3d) over(product_classification_encod) lcolor(%100) fcolor(%20) alegend range(0 18000) ///
        title("{bf}Density Plot", pos(11) size(3)) ///
        subtitle("Contract Types, 1{sup:st} Period (Households)", pos(11) size(2.75)) ///
            ytitle("Density", size(2.5) orient(horizontal)) ///
            ylabel(, nogrid labsize(2)) ///
            xtitle("Contracted Powers (in Watts)", size(2.5)) ///
            xlabel(0(2000)18000, labsize(2) nogrid format(%9.0fc))
    And here the plot:

    Click image for larger version

Name:	joy_plot.png
Views:	1
Size:	81.9 KB
ID:	1728763


    Thank you in advance.
    Best regards,

    Michael

  • #2
    Try option -notext-
    hth
    fernando

    Comment


    • #3
      Hi Professor FernandoRios,

      Thank you so much for your suggestion. It works indeed! Thanks.
      Another small question please:

      Is it possible to have the y-axis labels shown (in my case, the different density levels) please?
      Thank you in advance for your help.
      All the best,

      Michael

      Comment


      • #4
        Unfortunately that is not possible
        for something like what you describe you may have to do
        multiple kdensity plots or use the by() option
        hth

        Comment


        • #5
          Hi Professor FernandoRios,

          Thank you very much for your -by()- option suggestion.
          I will have a try.

          All the best,

          Michael

          Comment

          Working...
          X