A Tri Plot in Stata

A tri plot will plot the proportions or percentages of three variables, adding up to 1 or 100 respectively. To draw a tri plot in Stata, you first need to download the triplot command from the SSC. You do this with the following command in Stata:

ssc install triplot

To generate this graph in Stata use the following commands:

clear
input a1 a2 a3 str10 name 
10 10 80 John
80 10 10 Fred
25 25 50 Jane
90 5 5 Helen
0 0 100 Ed
50 25 25 Kate
20 60 20 Michael
25 25 50 Darren
5 90 5 Samar
end
list
triplot a1 a2 a3 , mlabel(name) mlabcolor(black) mcolor(blue) mlabsize(\*0.9) max(100) title("Opinion a1 a2 a3")

For a comprehensive exploration of the many Stata graph commands and options, check out the book A Visual Guide to Stata Graphics, 3rd Edition.