Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73134

Applying different colors to data points when using aaplot

$
0
0
Hi Stata Users,
I am using a Stata user written command aaplot and would like to colour code the points using the category variable. I am using the syntax and the dataset below


Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input byte(value_2014 growth category)
21  1 1
11  5 1
20  6 2
16  7 3
14  3 3
18  3 1
19  1 2
20  4 3
21 10 1
22 11 2
10  2 3
17  5 3
18  9 3
12  7 3
11  8 2
10  6 2
14  5 2
17  7 1
20 11 1
22 12 1
21 15 1
15  2 1
15  5 2
17  8 2
19  9 2
10  6 3
10  4 3
14  4 3
20  5 1
16  7 2
19  8 3
18  9 1
10  3 1
11  9 1
12  8 2
14  7 2
15  3 2
18  5 3
19  5 1
13  3 2
14  9 3
15  2 3
15  1 3
16 10 2
17 12 1
19 11 2
18 16 3
12  6 2
10  9 2
20  2 2
end

Code:
aaplot growth value_2014
Thanks in advance!

Viewing all articles
Browse latest Browse all 73134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>