A note on creating inset plots using graph twoway
A note on creating inset plots using graph twoway
Samenvatting
Inset plots can be used to “zoom in” on densely populated areas of a graph or to add extra relevant data in the form of, for example, distribution plots. However, the standard Stata command for combining plots, graph combine, does not permit this type of seamless integration. Each plot within a graph combine object is allocated a grid cell that cannot be placed within another grid cell— at least not without certain (invariably unwanted) graphical complications. We present a fairly simple work-around to this issue using reproducible examples. The main idea is to plot insets along a second axis and then artificially modify the range of this axis to constrain the inset plot within a specified area of the main graph. Additional tips are included for producing more intricate, multilayered inset graphs.
Organisatie | Hogeschool van Amsterdam |
Gepubliceerd in | The Stata Journal Vol. 23, Uitgave: 1, Pagina's: 265-275 |
Datum | 2023-03 |
Type | Artikel |
DOI | 10.1177/1536867X231162022 |
Taal | Engels |