Credits: Mullahy (2022): Introduce axis breaks in Stata graphs uses a five-step approach:
define a "faux" version of the variable measured on the axis to be broken
"erase" the axis to be broken
draw two line segments on that axis, the gap between them defining the break
set options to determine the look of these line segments
specify a faux set of axis labels for the broken axis
For instance, the basic structure of the command is
twoway (scatteri yval1 xval, recast(dropline) options) ///(scatteri yval2 xval, recast(dropline) options) ///(scatter fauxyvar xvar, yscale(lcol(none)) options)Specifying yscale(lcol(none)) effectively erases (or hides) those axes. The erased axis is replaced by two line segments defined by the two scatteri, recast(dropline) commands. Using recast(dropline) and its associated options in the scatteri commands allows precision in the positioning and look of these line segments. The main trick is defining a faux representation of the focal variable or outcome probability, with the definition such that some true values are mapped into new faux values.