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?
Risk ratio meta analysis - naive questionIt appears that risk ratio (comparing p/(p+q) for each group) is preferred to odds ratio (using p/q …
Import variables created by svmatDear Stata users, I create variables from matrix which got from a regression, a tabulation, or any …
Stata Is Omitted dummy variable(its value 0 and 1)Hi Experts Hope you are doing well! Please solve my query. Dataset is Unbalanced Panel Data Data w…
New package ipwbreg on SSCThanks as always to Kit Baum, a new package ipwbreg is now available for download from SSC. In Stata…
Loop through variable names and output a list of factor variables in the datasetDear Statalists, Is there a way that I could loop through the variables in a dataset and get a list…
Subscribe to:
Post Comments (Atom)
0 Response to Can I have two lines and one histogram in the same graph?
Post a Comment