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

st: RE: RE: Line Graph


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Line Graph
Date   Fri, 22 Apr 2005 08:30:00 +0100

Or...

sysuse auto
twoway histogram mpg, discrete freq recast(line)


David

-----Original Message-----
From: Scott Merryman [mailto:[email protected]]
Sent: 21 April 2005 17:33
To: [email protected]
Subject: st: RE: Line Graph


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/



*
*   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