I'm trying to figure out a quicker way to create readable charts. Often when I plot scatterplots with marker labels, some of the labels overlap as in the example below:
Code:
sysuse auto, clear scatter weight mpg in 1/10, mlab(make) xsc(range(10 30)) xlab(10(5)30)
I'd like to specify different marker label positions for different data points, but my solution below doesn't work. Is this possible?
Code:
gen mpos = 3 replace mpos = 9 if make=="Buick Century" scatter weight mpg in 1/10, mlab(make) xsc(range(10 30)) xlab(10(5)30) mlabpos(mpos)
Bill
0 Response to Specify twoway graph attributes with variable
Post a Comment