I am trying to make a kernel density graph with two as below. But I get the y axis from 0 to 33 instead of 0 to 0.33.
I tried to force the y axis into 0 to 1 as below, but I still get the same graph. Is it being considered in %? Who can I have it in decimals (0 up to 1)?
Code:
twoway (kdensity txmort if d_cor==1) (kdensity txmort if d_cor==0) if ano_obit==2005, ytitle("Densidade de Kernel") /// xtitle(tx mortalidade) legend(order(1 "corrup" 2 "nao corrup"))
Code:
twoway (kdensity txmort if d_cor==1) (kdensity txmort if d_cor==0) if ano_obit==2005, ytitle("Densidade de Kernel") /// xtitle(tx mortalidade) legend(order(1 "corrup" 2 "nao corrup")) yscale(range(0 1))
Comment