I am using an xtline to graph two variables with very different scales. I am using the code below
xtline ManufacturingProperty, addplot(line FeeinLieuandJointInd year, yaxis(2))
It works in the sense that it allows me to use different scales for the left and right Y axis but I cannot figure out how to label the 2nd Y axis since addplot does not seem to allow ytitle() as a suboption.
Related Posts with Label two Y axis with Xtline code
Survival Analysis: how to define the censor variable?Hello everyone, I am not that familiar yet with survival analysis, however, I want to investigate pe…
Issue using unixodbc in Kubuntu: The function SQLDataSources could not be found in libodbc.soI'm trying to access my mariaDB database from Stata using odbc but I get this error message: Code:…
Counting the number in a groupI have data on district name and school name. I am trying to get a list of how many schools there ar…
Import several excel files and transpose column into rowI need to import several Excel files. Each Excel file has three variables, item, price and quantity.…
Mean difference with omitted variableHi All, I'm trying to do a calculation for an average rate and a marginal rate using state data. Si…
Subscribe to:
Post Comments (Atom)
0 Response to Label two Y axis with Xtline code
Post a Comment