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
Filling missing values on variables only appearing every four years in the panelHi Statalist. I have a couple of variables that only appear in waves 4, 7, 10, 14, 18 (of a panel d…
Decimal places for identification variableI am merging data and some of my ID variables have decimal places. I tried using the real function b…
Nonparametric regression: lpoly vs npgressBoth commands perform local-linear kernel estimation and allow for visulizing estimates, but what ar…
Addplot ) required error r(100);Hello world I'm working on a code to make a graph, and it keeps getting in trouble. It`s a panel d…
Testing for differences between groupsHello! I was tasked with proving how having the first two children of the same sex predicts whether…
Subscribe to:
Post Comments (Atom)
0 Response to adding a legend for xline
Post a Comment