I always thought that there was no easy way to place a small graph on top of another graph in Stata, but there is, using graph combine and some _gm_edit commands, as has been shown by Matthew Tibbles and Eric Melse in the latest issue of the Stata Journal (Tibbles and Melse 2023). I now put together a convenience command streamlining the process. Type
to obtain the command. See https://github.com/benjann/grinset/ for an example.
ben
Tibbles, Matthew, Eric Melse. 2023. A note on creating inset plots using graph twoway. The Stata Journal 23(1): 265-275. https://doi.org/10.1177/1536867X231162022
Code:
. ssc install grinset, replace
ben
Tibbles, Matthew, Eric Melse. 2023. A note on creating inset plots using graph twoway. The Stata Journal 23(1): 265-275. https://doi.org/10.1177/1536867X231162022
Comment