Hello statalisters,
I've been struggling with this for a moment already and don't know what to do...
I've generated this kdenisty plot and I want to have no line around the legend. I thought that by using : legend( region(lwidth(none) margin(none)) the problem would be gone, but it won't.
Here is my code (and my figure) :
twoway kdensity wucaf_u24_mg if sex==1 & index==1, lwidth(*2.5) || kdensity wucaf_u24_mg if sex==2 & index==1, name(ucaf_sex) ///
legend(ring(0) pos(2) textfirst cols(1) region(lwidth(none) margin(none)) order(1 "Males" 2 "Females")) lwidth(*2.5) subtitle("By sex")
I've been struggling with this for a moment already and don't know what to do...
I've generated this kdenisty plot and I want to have no line around the legend. I thought that by using : legend( region(lwidth(none) margin(none)) the problem would be gone, but it won't.
Here is my code (and my figure) :
twoway kdensity wucaf_u24_mg if sex==1 & index==1, lwidth(*2.5) || kdensity wucaf_u24_mg if sex==2 & index==1, name(ucaf_sex) ///
legend(ring(0) pos(2) textfirst cols(1) region(lwidth(none) margin(none)) order(1 "Males" 2 "Females")) lwidth(*2.5) subtitle("By sex")
Comment