Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: ERROR IN GRAPH OUTPUT FOR LCOLOR() OPTION, MAYBE SOFTWARE???


From   John Ayers <john.ayers.sdsu@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: ERROR IN GRAPH OUTPUT FOR LCOLOR() OPTION, MAYBE SOFTWARE???
Date   Wed, 26 Aug 2009 11:50:58 -0400

DEAR ALL:

BELOW IS THE SYNTAX FOR THE GRAPH OF INTEREST:

label var p1 "0"
label var p2 "1"
label var p3 "2"
label var p4 "3"
label var p5 "4 Leaders' Messages"
twoway (line p2 peer1, lpattern (dash_3dot) lwidth (medthick)
lcolor(blue*1.25)) ///
(line p3 peer1, lpattern (solid) lwidth (medthick) lcolor (blue*.90)) ///
(line p4 peer1, lpattern (longdash) lwidth (medthick)  lcolor (blue*.60)) ///
(line p5 peer1, lpattern (-#########.) lwidth(medthick) lcolor (blue*.30)), ///
xtitle("Congregants' Messages on Healthy Diet and Exercise (#)") ///
ytitle("Probability of" "Being Overweight or Obese (%)") ///
xscale(range(-0.1 12.1)) xlabel(0(2)12) ///
yscale(range(-.01,.51)) ylabel(0 "0" .1 "10" .2 "20" .3 "30" .4 "40"
.5 "50", angle(0) ///
grid glwidth(vthin) glcolor(gs10) glpattern(shortdash)) ///
scheme(s1mono) legend (rows(1) region(style(none))) name(prob,
replace) scale(1.05)

HOWEVER, UNLIKE THE SPECIFIED OPTION, LCOLOR(BLUE*#) THE LINE COLORS
IN THE FIGURE ARE SHADES OF BLUE FROM 0 TO 4 ALONG THE X AXIS, AS
SPECIFIED, BUT VALUES ABOVE 4 ARE UNIFORMLY BLACK. INTERESTINGLY, THE
LEGEND HAS THE CORRECT COLORING. I REACCESSED THIS CODE TO RETRIEVE A
HIGH RESOLUTION IMAGE FOR THE JOURNAL AND EARLIER VERSIONS WERE
COLORED CORRECTLY AS

TO TROUBLE SHOOT I UPDATED STATA 10.1 64SE (ON A MAC PLATFORM)
AUTOMATICALLY AND LATTER DID A MANUAL UPDATE REPLACING STATA IN THE
APPROPRIATE FOLDER.

ANY SUGGESTIONS ARE GREATLY APPRECIATED!

John Ayers
-Johns Hopkins Bloomberg School of Public Health
-jayers@jhsph.edu
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index