Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Changing graphregion color in gr twoway with by


From   Brad Humphreys <brhumphreys@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Changing graphregion color in gr twoway with by
Date   Thu, 12 Aug 2010 09:53:58 -0400

Hi statlisters,

I am having trouble changing the graphregion color in a twowar graph
with the by option.  Here's the code I've tried:

twoway (line var1 year, xline(1980 1992 1996)),  by(var2, iscale(*.8)
yrescale xrescale iylabel ixlabel)
graphregion( fcolor(green) icolor(green) color(green) ifcolor(green));

I have tried to fill in every graphregion option that I cam think of
in that graphregion(.) option, but the color of the graph never
changes.  This has been easy for lots of other graphs.

I have also tried the undocumented option bgcolor(<colorstyle>) that I
read about here.  That didn't work either.

Any suggestions about changing this color?

Thanks,

Brad Humphreys
University of Alberta
*
*   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   |   Site index