hypo_hamlet_generic: Add a generic hamlet to a ggplot

View source: R/hypoimg_generic.R

hypo_hamlet_genericR Documentation

Add a generic hamlet to a ggplot

Description

hypo_hamlet_generic adds a generic hamlet with custom color.

Usage

hypo_hamlet_generic(
  col = "darkgray",
  x_in = 0.5,
  y_in = 0.5,
  width_in = 1,
  height_in = 1,
  face = c("l", "r"),
  ...
)

Arguments

col

string (color, optional), defaul = darkgray

x_in

horizontal position

y_in

vertical position

width_in

numeric scalar (optional), width (in graph x axis units)

height_in

numeric scalar (optional), width (in graph y axis units)

face

string scalar (optional), one of l,r side the hamlet is facing

...

catch all parameter to allow excess parameter through purrr::pmap

Details

This function allows the placement of a generic hamlet within a ggplot. It is based on ggplot2::annotation_custom() and allows to specify the coloration of the generic hamlet.

See Also

hypo_coral_generic

Examples

ggplot()+
  hypo_hamlet_generic(col = clr2[[1]])


k-hench/hypoimg documentation built on June 2, 2022, 1:49 a.m.