Hi all,
I am trying to change showval option in tabplot, I almost dit it but lamentably I am not able to format label width. Below I attach my result and code example ( I get it from a old post from this forum):
This code output this graph: 
My graph dont show labels properly:
Please any comment I will grateful.
Regards
Rodrigo
I am trying to change showval option in tabplot, I almost dit it but lamentably I am not able to format label width. Below I attach my result and code example ( I get it from a old post from this forum):
Code:
clear input byte(a1 b1 c1) 2 1 2 1 2 1 2 2 2 2 2 1 2 2 2 2 1 1 1 2 2 3 3 3 2 2 2 2 2 1 1 2 2 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 1 1 2 2 1 1 2 1 2 3 3 3 1 2 2 2 2 1 1 1 2 1 1 1 1 2 2 2 2 1 1 2 2 1 2 1 1 2 2 2 2 1 end label values a1 size label values b1 size label values c1 size label def size 1 "big", modify label def size 2 "small", modify label def size 3 "medium", modify rename (a1 b1 c1) (size=) gen long id = _n reshape long size, i(id) j(which) string bysort which size : gen freq = _N by which : gen pc = 100 * freq / _N gen show = string(freq) + " (" + string(pc, "%2.1f") + "%" +")" tabplot size, by(which, col(1) compact note("")) /// showval(show, offset(0.18)) /// subtitle(, pos(9) nobox nobexpand fcolor(none)) /// xtitle("") ytitle("") horizontal
My graph dont show labels properly:
Please any comment I will grateful.
Regards
Rodrigo
Comment