Add inlays on a ggplot interactively.
This is a mini R package buid around patchwork::inset_element().
Occasionally, while working with ggplot, we want to place an inlay plot at a specific location.
Arguably patchwork::inset_element()
offers the best solution for it
but the exact coordinates of the inlay need to be inputted by the user.
gginlay
makes it easy to place things on a graph by letting you interactively choose where to put them.
Then, it gives you the exact inset_element()
code to add to your ggplot to make it happen.
remotes::install_github("mpio-be/gginlay")
gginlay(your_ggplot, your_inlay)