(Cross-posted from the v17 wishlist,
https://www.statalist.org/forums/for...72#post1601072, at the suggestion of
Nick Cox)
Stata does not currently have an
immediate version of –twoway histogram–. For example, imagine
Code:
twoway histi .4 0 .3 1 .2 2 .1 3, [standard twoway hist options]
However, using –twoway scatteri– along with –recast– can deliver pretty much what's desired:
Code:
twoway scatteri .4 0 .3 1 .2 2 .1 3, recast(bar) ysc(r(0 .4))
As with –twoway histogram– you'll probably want to prettify your visualization with other options and can use the –twoway bar– options to do so in the –scatteri– command.
This suffices for my immediate (no pun intended) purposes, but if others have devised other solutions then please do share your ideas.
0 Response to An immediate histogram command?
Post a Comment