Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: backgrounf color in pie graph with 'by' option


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: backgrounf color in pie graph with 'by' option
Date   Thu, 9 Feb 2006 05:03:08 -0600

The -graphregion(color())- option has be within the -by()- option.

For example:

graph pie exp, over(rep78) by(foreign, graphregion(fc(white))) ///
subtitle(,  fcolor(white) lcolor(white))


The -subtitle- suboptions will remove the shaded boxes around the individual
subtitles.  

Hope this helps,
Scott

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Fouarge.j.
> Sent: Thursday, February 09, 2006 1:56 AM
> To: [email protected]
> Subject: st: backgrounf color in pie graph with 'by' option
> 
> Hi,
> 
> I am trying to generate a pie chart of some variables by categories of
> another variable as in this example:
> 
> sysuse auto
> gen exp = price > 6000
> graph pie exp, over(rep78) by(foreign)
> 
> I need the background color to be changed in white. I believe that the way
> to this is using the graphregion option:
> 
> graph pie exp, over(rep78) by(foreign) ///
> graphregion(fc(white))
> 
> But this leaves the outer graph region green.
> The above command works fine without the 'by'.
> 
> Can anyone help?
> 
> Thanks,
> 
> Didier Fouarge



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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