Hi all,
I would like to draw a graph with three information: 1. Age on y-axis(1) 2. Gender on y-axis (2) and 3. Number of Students as a histogram with numbers showing up. X-axis is year.
graph twoway (line Age Year, yaxis(1)) (line Gender Year, yaxis(2)) (hist Student Year), xlabel(1990(5)2019, labsize(small)) xline(0, lp(-)) legend(size(small) label(1 "Age") label(2 "Gender"))
It gives me the result saying that "too many variables specified"
Is there any other command that I can use to have three variables at the same time? Num of student has to be a histogram. Thank you.
Related Posts with Can I have two lines and one histogram in the same graph?
Advertising variablesDear All I have a Stata dataset with 200 observations. Each observation represents 1 order. The dat…
Fixed-effect model: how to regress with 2 sample periodsDear Statalist, For my thesis I try to examine the effect when a firm generates more renewable ener…
Ordered probit / multinomial probit models, marginal effects differenceHello everyone, I'm working with National Longitudinal Survey of Youth (NLSY79 and NLSY97), which i…
Create four-year average dataHello I would like to create a panel data that contains four-year averages accross each variables i…
How to replace space(s) in a string by another charater like and underscore (_)?For my coding, I need to automatically replace possible spaces from value labels during processing i…
Subscribe to:
Post Comments (Atom)
0 Response to Can I have two lines and one histogram in the same graph?
Post a Comment