Places a smaller plot (inset) as a floating panel on top of a base
plotit via patchwork::inset_element(). Position is specified in
normalised parent coordinates (0-1 relative to the panel or plot area).
The returned composite accepts label_title() / style() / export()
in the usual way.
Usage
compose_inset(
base,
inset,
left = 0,
bottom = 0,
right = 1,
top = 1,
align_to = "panel",
on_top = TRUE,
...
)Arguments
- base
A
plotitobject serving as the background.- inset
A
plotitorplotit_compositeobject to overlay.- left, right, bottom, top
Inset edges in npc (0-1).
- align_to
Coordinate reference:
"panel"(default) or"plot".- on_top
Logical;
TRUE(default) = inset rendered above base.- ...
Passed through to
patchwork::inset_element().
