Hi,
I am trying to colour two areas of the histogram, currently I am only able to colour one of the areas. The code I currently have is:
histogram income if income < 6, start(0) width(0.5) lcolor(orange) freq fcolor(orange*0.2) addplot(histogram income if income > 6, start(6) width(0.5) freq lcolor(blue) fcolor(blue*0.2)) legend(order(1 "Outliers") ring(0) pos(1)) graphregion(fcolor(white)) xtitle("Logarithm of income", size(medsmall))
But I want to colour the area above 15 too also in orange.
Thank you in advance
I am trying to colour two areas of the histogram, currently I am only able to colour one of the areas. The code I currently have is:
histogram income if income < 6, start(0) width(0.5) lcolor(orange) freq fcolor(orange*0.2) addplot(histogram income if income > 6, start(6) width(0.5) freq lcolor(blue) fcolor(blue*0.2)) legend(order(1 "Outliers") ring(0) pos(1)) graphregion(fcolor(white)) xtitle("Logarithm of income", size(medsmall))
But I want to colour the area above 15 too also in orange.
Thank you in advance
Comment