Here is one way:
. sysuse auto
(1978 Automobile Data)
. gen mpg2 = mpg
. collapse (count) mpg2 , by(mpg)
. line mpg2 mpg
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Carter Ivan Rees
> Sent: Thursday, April 21, 2005 11:10 AM
> To: [email protected]
> Subject: st: Line Graph
>
> A simple and somewhat embarrassing question about a line graph. I would
> like to make a simple line graph of an age distribution. Y-axis a count
> or percentage and the x-axis my age variable.
>
> How is this done?
>
> Thanks.
>
> Carter
>
*
* 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/