Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Line Graph


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Line Graph
Date   Thu, 21 Apr 2005 11:32:39 -0500

Here is one way:

. sysuse auto
(1978 Automobile Data)

. gen mpg2 = mpg

. collapse (count) mpg2 , by(mpg)

. line mpg2 mpg


Scott

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Carter Ivan Rees
> Sent: Thursday, April 21, 2005 11:10 AM
> To: statalist@hsphsun2.harvard.edu
> 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/



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