Announcement

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

  • graph x-axis not legible

    I used the code below to generate the attached plot but the values on the x-axis are not legible. Kindly assist.



    coefplot /// QOL_PHYSICAL_COMBINED.gph
    (Depression, mcolor(green) ciopts(lcolor(green))) ///
    (Dementia, mcolor(blue) ciopts(lcolor(blue))) ///
    (Epilepsy, mcolor(red) ciopts(lcolor(red))) ///
    (Other_complaints, mcolor(purple) ciopts(lcolor(purple))) ///
    (Psychosis, mcolor(black) ciopts(lcolor(black))), ///
    eform drop(_cons) xscale(log range(.5 2)) omitted ///
    xline(1, lcolor(black) lwidth(thin) lpattern(dash)) ///
    title("Changes in the physical domain of quality of life") xtitle("odds ratio") ///
    text(1.8 1.9 "N=103", box fcolor(white) lcolor(black)) ///
    msymbol(D) ciopts (recast (rcap))

  • #2
    You need to rescale the variable labeled "Depression" which has a very large OR. Otherwise, you can specify specific values as

    Code:
    xlab(1 "1" `=1e+9' "1e+9" `=1e+15' "1e+15" )
    Click image for larger version

Name:	QOL_PHYSICAL_COMBINED.png
Views:	1
Size:	42.8 KB
ID:	1666406

    Comment


    • #3
      Power of 10 notation is possible with stuff like


      Code:
      xlabel(1e15 "10{sup:15}")
      In my kind of territory -- geography, Earth and environmental sciences -- that would be preferred, but I can't speak for epidemiology, economics, eschatology or ecclesiology.

      Comment


      • #4
        Thank you both. I specified the values and it looks much better. thanks!

        Comment


        • #5
          Originally posted by Nick Cox View Post
          Power of 10 notation is possible with stuff like


          Code:
          xlabel(1e15 "10{sup:15}")
          In my kind of territory -- geography, Earth and environmental sciences -- that would be preferred, but I can't speak for epidemiology, economics, eschatology or ecclesiology.
          Hi Nick, just to clarify how to interpret this. initially, I drew the individual graphs using the command below before combining them using coeffplot. So I just want to understand what coeffplot plots. Is it the coefficients? In which case, what would your suggestion interpret to in terms of how I write this in the results?
          xtmixed Disability Time Age i.sex if diagnosis1==1, noheader|| id:
          estimates store Depression

          Comment


          • #6
            coefplot is a great command (from SSC, as you are asked to explain) -- which I only rarely use. So, others are more likely to understand what you seek here.

            Comment

            Working...
            X