Stata Tutorials Topic 15: Axis Options for Stata Graphs
Hi, I am Bob. On this topic, we will explore the axis options. We can modify the axis’s title, labels, and
ticks using the axis options. We can use two y-axes in the same graph.
Please download the dataset for this video:
https://drive.google.com/file/d/1RnY8...
The Stata commands in the video:
*use the course dataset hinc.dta
use "/Users/bobwen/Documents/10. Alison/Datasets/hinc.dta", clear
*Axis Title Options
line income year, ytitle("Average Household Income") xtitle("Survey Year")
*Axis Label Options
replace income=income/1000
line income year, ytitle("Average Household Income(1000USD)") xtitle("Survey Year") ylabel(60(5)75,angle(0)) xlabel(2000(5)2020, angle(45))
line income year, ytitle("Average Household Income(1000USD)") xtitle("Survey Year") ylabel(60(5)75,angle(0)) xlabel(2000(5)2020, angle(45)) xtick(2000(1)2020, grid)
*Axis Selection Options
sysuse "auto.dta", clear
scatter mpg price weight
graph twoway (scatter mpg weight, yaxis(1)) (scatter price weight, yaxis(2))
graph twoway (scatter mpg weight, yaxis(1) mcolor(blue)) (scatter price weight, yaxis(2) mcolor(orange) msymbol(triangle))
【Some courses on my Youtube channel: 】
Economics in Real Life:
• Economics in Real Life
Solutions to Introductory Econometrics A Modern Approach 7th Edition:
• Solutions to Introductory Econometric...
Introductory Stata:
• Introductory Stata (2022)
Introductory Microeconomics:
• Introductory Microeconomics (2022)
Five Minute Econometrics:
• Five Minute Econometrics (Econometric...
Five Minute Stata:
• Stata Tutorials
【國語Mandarin】生活中的經濟學:
• 【Mandarin國語】現實生活中的經濟學
【粵語Cantonese】生活中的經濟學:
• 【Cantonese粵語】現實生活中的經濟學
【粵語Cantonese】微觀經濟學基礎:
• 粵語Cantonese微觀經濟學基礎2022
【國語Mandarin】五分鐘計量經濟學:
• 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)
【粵語Cantonese】五分鐘計量經濟學:
• 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)
On the Road:
• On the Road
#TwoYAxes #Axis #AxisOption #Stata #StataGraph #tutorial
Watch video Axis Options for Stata Graphs | Stata Graphics and Data Visualization | Stata Tutorials Topic 15 online without registration, duration hours minute second in high quality. This video was added by user Dr. Bob Wen (Stata, Economics, Econometrics) 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 598 once and liked it 16 people.