































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Instructions on how to create a line graph using stata software to visualize the life expectancy trends for males and females in the us from 1900 to 2000. Various aspects of customizing the graph, such as adjusting labels, tick marks, titles, and legend positions.
Typology: Slides
1 / 39
This page cannot be seen from the preview
Don't miss anything!
80 70 60 50 40 1900 1920 1940 1960
(^1980 2000) YearLife expectancy, females Life expectancy, males
(^2000) Year Life expectancy, males^ Life expectancy, females
(^1990 2000) YearLife expectancy, males Life expectancy, females
10
(^1990 2000) NO OF YEARS LIFE EXPECTANCY OF MALES & FEMALES OF USLife expectancy, males^ Life expectancy, females
11
title("LIFE EXPECTANCY OF MALES & FEMALES OF US ", size(large)margin(medium))^ xtitle("NO
OF^ YEARS",^ size(medium) margin(small))^ ytitle("LIFE
EXPECTANCY",^ size(medium) margin(small))
13
labs(small)) xtic(1900(5)2000)^ ylabel(35(10)
,^ labs(small) )^ ytic(35(5)80) title("LIFE EXPECTANCY OF MALES & FEMALES OF US ",size(large)^ margin(medium))
xtitle("NO^ OF^ YEARS", size(medium)^ margin(small))
ytitle("LIFE^ EXPECTANCY", size(medium) margin(small))
14
(^1990 2000) NO OF YEARS LIFE EXPECTANCY OF MALES & FEMALES OF USLife expectancy, males^ Life expectancy, females
16
labs(small)) xtic(1900(5)2000)^ ylabel(35(10)80,
labs(small))^ ytic(35(5)80) title("LIFE EXPECTANCY OF MALES & FEMALES OF US ",size(large)^ margin(medium))
xtitle("NO^ OF^ YEARS", size(medium)^ margin(small))
ytitle("LIFE^ EXPECTANCY", size(medium) margin(small)) leg(pos(6)) Try the following options for the legends: leg(pos(9))leg(pos(3))leg(pos(-3))(Note: The last command will use the default value b/c -3 is out ofrange).
17
(^1980 1990 2000) NO OF YEARSLife expectancy, males Life expectancy, females LIFE EXPECTANCY OF MALES & FEMALES OF US
19
(^1980 1990 2000) NO OF YEARSLife expectancy, malesLife expectancy, females LIFE EXPECTANCY OF MALES & FEMALES OF US
20
labs(small)) xtic(1900(5)2000)^ ylabel(35(10)80,
labs(small))^ ytic(35(5)80) title("LIFE EXPECTANCY OF MALES & FEMALES OF US ",size(large)^ margin(medium))
xtitle("NO^ OF^ YEARS", size(medium)^ margin(small))
ytitle("LIFE^ EXPECTANCY", size(medium) margin(small)) leg(col(1) stack pos(6))