Announcement

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

  • Help with scheme entries affecting rarea plots using marginsplot

    I am trying to create a scheme that changes the intensity, opacity, or color of a marginsplot when the confidence intervals (CIs) are recast as a rarea plot. In the first plot created by the code below you can see the outline of the CIs recast as an area. In the second I changed the opacity so they are not visible.

    Can someone point me to the scheme entries that control the line color or line width of rarea plots so I can make this behavior the default in my marginsplots?


    Code:
    sysuse auto
    regress mpg weight
    margins, at(weight=(1800(25)4825))
    marginsplot, recast(line) recastci(rarea) ciopts(fcolor(*.5)) name(g1)
    marginsplot, recast(line) recastci(rarea) ciopts(fcolor(*.5) lcolor(%0)) name(g2)

    Graph G1:
    Click image for larger version

Name:	g1.png
Views:	1
Size:	89.1 KB
ID:	1486099

    Graph G2:
    Click image for larger version

Name:	g2.png
Views:	1
Size:	77.6 KB
ID:	1486102

    Best,
    Alan
    Last edited by Alan Neustadtl; 01 Mar 2019, 16:45.
Working...
X