Hello,
I am trying something like below to add a legend for the green vertical xline that I added onto my scatter plot:
scatter AUC Alpha, ///
xline(`=bestAlpha[1]', lcolor(green)) ///
xlab(0.1 "0.1" 0.6 "0.6" 1.1 "1.1" 1.6 "1.6" 2.1 "2.1" 2.6 "2.6" 3.1 "3.1" 3.6 "3.6" 4.1 "4.1" 4.6 "4.6") ///
legend(order(1 "bestAlpha obtained from the training set") )
But of course my syntax for the legend is wrong? I searched internet to find a way and tried various examples, but I couldn't get them to work.
How can I add a legend for the green xline that I added onto the scatter plot? Thank you,
Related Posts with adding a legend for xline
Smaller and low quality graphs in Stata 17Dear community, I'm using Stata 17 SE and getting smaller and low-quality graphs than in previous v…
Roc curveHi everyone, I have made a ROC curve to test the predictive power of the credit rating in estimating…
Margins "variable not found in list of covariates" logistic regressionHi there, I'm having an issue whereby I am trying to run a margins command following my logit regre…
Statistical Non-Significance of results and their interpretion by using confidence intervals and standard errorsDear Stata Members I have done a Difference in Difference model and I got the following output Cod…
Help in creating so many dummiesHi I have a data set of 94 countries and number of observations for each country is different. The…
Subscribe to:
Post Comments (Atom)
0 Response to adding a legend for xline
Post a Comment