Learn R Programming

rphylopic (version 1.0.0)

phylopic_inset: Add custom grob insets to a ggplot

Description

This is identical to ggplot2::annotation_custom() but it works with all coords.

Usage

phylopic_inset(grob, xmin = -Inf, xmax = Inf, ymin = -Inf, ymax = Inf)

Arguments

grob

grob to display

xmin, xmax

x location (in data coordinates) giving horizontal location of grob

ymin, ymax

y location (in data coordinates) giving vertical location of grob

Details

Most useful for adding tables, inset plots, and other grid-based decorations