View source: R/hypoimg_basics.R
hypo_anno_r | R Documentation |
hypo_anno_r
adds a right facing hamlet annotation to a ggplot.
hypo_anno_r(species, xmin = -Inf, xmax = Inf, ymin = -Inf, ymax = Inf, ...)
species |
string scalar (manatory), one of "aberrans","atlahua", "castroaguirrei","chlorurus","ecosur","floridae","gemma","gummigutta", "guttavarius","indigo","liberte","maculiferus","maya","nigricans", "providencianus","puella","randallorum","tan","unicolor" |
xmin |
numeric scalar (optional), left boundary of the annotation |
xmax |
numeric scalar (optional), right boundary of the annotation |
ymin |
numeric scalar (optional), lower boundary of the annotation |
ymax |
numeric scalar (optional), upper boundary of the annotation |
... |
catch all parameter to allow excess parameter through purrr::pmap |
Hypogen comes with a set of illustrations of differnt halmet species.
The function hypo_anno_r
uses the ggplot2::annotation_custom()
function to add a single right facing hamlet to a existring ggplot.
hypo_anno_l
,
hypo_anno_flag
ggplot(tibble(x = 1, y = 1), aes(x = x, y = y))+ geom_point()+ hypo_anno_l('unicolor', xmax = 1.2, ymax = 1.2)+ hypo_anno_r('aberrans', xmin = .8, ymin = .8)+ coord_cartesian(xlim = c(0, 2), ylim = c(0, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.