[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Graphing limitations / questions
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:owner-
> email@example.com] On Behalf Of Fredrik Wallenberg
> Sent: Thursday, November 11, 2004 3:11 PM
> To: firstname.lastname@example.org
> 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: