[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Graphing limitations / questions
> -----Original Message-----
> From: email@example.com [mailto:owner-
> firstname.lastname@example.org] On Behalf Of Fredrik Wallenberg
> Sent: Thursday, November 11, 2004 3:11 PM
> To: email@example.com
> Subject: st: Graphing limitations / questions
> I have a few graphs that I cannot seem to create using Stata 8.
> Perhaps someone could point me in the right direction (or confirm that
> it can't be done ... without creating a new dataset).
> I have two multiple choice survey questions. I would like to visualize
> the combinations of the answers in one out of three ways.
> C) use -histogram, by-, BUT get ONE graph, treating the -by- options
> as separate variables in the same graph. Once again this seems like a
> reasonable thing to do but Stata doesn't have any support for it (that
> I can tell).
You can use multiple -histogram- statements. For example:
twoway (histogram weight if fore == 0, density blcolor(gs12) ///
blwidth(medthick) bfcolor(gs15) legend(label(1 "Domestic"))) ///
(histogram weight if fore == 1, density blcolor(blue) blwidth(medthick) ///
bfcolor(none)legend(label(2 "Foreign")) )
* For searches and help try: