ietoolkit
ietoolkit copied to clipboard
iegraph: suggestion for new options
- [ ]
basictitle
does not wrap the text when using separate strings ("line_one" "line_two") as argument - [ ] Allow the user to change columns barwidth and color scheme
- [ ] Allow to put coefficient on top of confidence interval: I did that by adding an additional plot with the
mlabel
option and the coefficient as argument (you could even generate a string with the coefficient and the significance level stars - if any - instead of putting it after the number of observations below the treatment bar). See example below:
First, store a string with the coefficient label:
gen coeffStarLab = string(round(coeff,.01), "%9.2f") + star
Hence, include it as additional plot of graph twoway
:
(scatter mean position, msym(none) mlab(coeffStarLab) mlabsize(medium) mlabpos(12) mlabgap(2) mlabcolor(black))
Here, the argument of mlabgap
needs to be set manually depending on the size of the confidence interval. Maybe, you have a smarter solution! ;)
Thanks for your suggestions, @MRuzzante! Below are some comments
- Thanks for pointing the issue with
basictitle
, I'll put it on the next release to-dos - It should be possible to change the barwidth using the
baroptions
option - I like the stars option, but I think putting the coefficient on top of CI could make it look like that is the highest value within the confidence interval. I agree that users should still be able to place it there if they choose to, though.